File: //snap/google-cloud-cli/394/help/man/man1/gcloud_alpha_tasks_renew-lease.1
.TH "GCLOUD_ALPHA_TASKS_RENEW\-LEASE" 1
.SH "NAME"
.HP
gcloud alpha tasks renew\-lease \- renew the lease on a task in a pull queue
.SH "SYNOPSIS"
.HP
\f5gcloud alpha tasks renew\-lease\fR \fITASK\fR \fB\-\-lease\-duration\fR=\fILEASE_DURATION\fR \fB\-\-schedule\-time\fR=\fISCHEDULE_TIME\fR [\fB\-\-location\fR=\fILOCATION\fR] [\fB\-\-queue\fR=\fIQUEUE\fR] [\fIGCLOUD_WIDE_FLAG\ ...\fR]
.SH "DESCRIPTION"
\fB(ALPHA)\fR Renew the lease on a task in a pull queue.
.SH "POSITIONAL ARGUMENTS"
.RS 2m
.TP 2m
\fITASK\fR
The task to renew the lease of.
.RE
.sp
.SH "REQUIRED FLAGS"
.RS 2m
.TP 2m
\fB\-\-lease\-duration\fR=\fILEASE_DURATION\fR
The number of seconds for the desired new lease duration, starting from now. The
maximum lease duration is 1 week.
.TP 2m
\fB\-\-schedule\-time\fR=\fISCHEDULE_TIME\fR
The task's current schedule time. This restriction is to check that the caller
is renewing the correct task.
.RE
.sp
.SH "OPTIONAL FLAGS"
.RS 2m
.TP 2m
\fB\-\-location\fR=\fILOCATION\fR
The location where we want to manage the queue or task. If not specified, uses
the location of the current project's App Engine app if there is an associated
app.
.TP 2m
\fB\-\-queue\fR=\fIQUEUE\fR
The queue the task belongs to.
.RE
.sp
.SH "GCLOUD WIDE FLAGS"
These flags are available to all commands: \-\-access\-token\-file, \-\-account,
\-\-billing\-project, \-\-configuration, \-\-flags\-file, \-\-flatten,
\-\-format, \-\-help, \-\-impersonate\-service\-account, \-\-log\-http,
\-\-project, \-\-quiet, \-\-trace\-token, \-\-user\-output\-enabled,
\-\-verbosity.
Run \fB$ gcloud help\fR for details.
.SH "NOTES"
This command is currently in alpha and might change without notice. If this
command fails with API permission errors despite specifying the correct project,
you might be trying to access an API with an invitation\-only early access
allowlist.