| Server IP : 35.236.43.222 / Your IP : 216.73.216.143 Web Server : Apache System : Linux order-form-vm-001 5.10.0-37-cloud-amd64 #1 SMP Debian 5.10.247-1 (2025-12-11) x86_64 User : deploy ( 1002) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/lib/google-cloud-sdk/lib/surface/tasks/__pycache__/ |
Upload File : |
�
��
� �� � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddl m
Z
ddl mZ dd l mZ ej
ej j � � G d
� dej � � � � ZdS )
z`gcloud tasks lease` command.� )�absolute_import)�division)�unicode_literals)�
GetApiAdapter)�base)�flags)�list_formats)�parsersc �. � e Zd ZdZed� � � Zd� ZdS )�Leasea� Leases a list of tasks and displays them.
Each task returned from this command will have its schedule time changed
based on the lease duration specified. A task that has been returned by
calling this command will not be returned in a different call before its
schedule time. After the work associated with a task is finished, the lease
holder should call `gcloud tasks acknowledge` on the task.
c � � t j � | � � t j � | � � t j | dd�� � t j | � � t j | d�� � t j | � � t j | � � t j | d�� � d S )NT)�required�plural_tasksz� The number of seconds for the desired new lease duration for all tasks
leased, starting from now. The maximum lease duration is 1 week.
)�helptext)�is_alpha)r �PAGE_SIZE_FLAG�RemoveFromParser�
LIMIT_FLAGr �AddQueueResourceFlag�AddLocationFlag�AddTaskLeaseDurationFlag�AddFilterLeasedTasksFlag�AddMaxTasksToLeaseFlagr �AddListTasksFormats)�parsers �lib/surface/tasks/lease.py�Argsz
Lease.Args'