Show / Hide Table of Contents

Class ProjectsResource.LocationsResource.QueuesResource.TasksResource.RunRequest

Forces a task to run now. When this method is called, Cloud Tasks will dispatch the task, even if the task is already running, the queue has reached its RateLimits or is PAUSED. This command is meant to be used for manual debugging. For example, RunTask can be used to retry a failed task after a fix has been made or to manually force a task to be dispatched now. The dispatched task is returned. That is, the task that is returned contains the status after the task is dispatched but before the task is received by its target. If Cloud Tasks receives a successful response from the task's target, then the task will be deleted; otherwise the task's schedule_time will be reset to the time that RunTask was called plus the retry delay specified in the queue's RetryConfig. RunTask returns NOT_FOUND when it is called on a task that has already succeeded or permanently failed.

Inheritance
object
ClientServiceRequest
ClientServiceRequest<Task>
CloudTasksBaseServiceRequest<Task>
ProjectsResource.LocationsResource.QueuesResource.TasksResource.RunRequest
Implements
IClientServiceRequest<Task>
IClientServiceRequest
Inherited Members
CloudTasksBaseServiceRequest<Task>.Xgafv
CloudTasksBaseServiceRequest<Task>.AccessToken
CloudTasksBaseServiceRequest<Task>.Alt
CloudTasksBaseServiceRequest<Task>.Callback
CloudTasksBaseServiceRequest<Task>.Fields
CloudTasksBaseServiceRequest<Task>.Key
CloudTasksBaseServiceRequest<Task>.OauthToken
CloudTasksBaseServiceRequest<Task>.PrettyPrint
CloudTasksBaseServiceRequest<Task>.QuotaUser
CloudTasksBaseServiceRequest<Task>.UploadType
CloudTasksBaseServiceRequest<Task>.UploadProtocol
ClientServiceRequest<Task>.Execute()
ClientServiceRequest<Task>.ExecuteAsStream()
ClientServiceRequest<Task>.ExecuteAsync()
ClientServiceRequest<Task>.ExecuteAsync(CancellationToken)
ClientServiceRequest<Task>.ExecuteAsStreamAsync()
ClientServiceRequest<Task>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<Task>.CreateRequest(bool?)
ClientServiceRequest<Task>.GenerateRequestUri()
ClientServiceRequest<Task>.GetDefaultETagAction(string)
ClientServiceRequest<Task>.ETagAction
ClientServiceRequest<Task>.ModifyRequest
ClientServiceRequest<Task>.ValidateParameters
ClientServiceRequest<Task>.ApiVersion
ClientServiceRequest<Task>.RequestParameters
ClientServiceRequest<Task>.Service
ClientServiceRequest._unsuccessfulResponseHandlers
ClientServiceRequest._exceptionHandlers
ClientServiceRequest._executeInterceptors
ClientServiceRequest.AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)
ClientServiceRequest.AddExceptionHandler(IHttpExceptionHandler)
ClientServiceRequest.AddExecuteInterceptor(IHttpExecuteInterceptor)
ClientServiceRequest.Credential
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.CloudTasks.v2beta3
Assembly: Google.Apis.CloudTasks.v2beta3.dll
Syntax
public class ProjectsResource.LocationsResource.QueuesResource.TasksResource.RunRequest : CloudTasksBaseServiceRequest<Task>, IClientServiceRequest<Task>, IClientServiceRequest

Constructors

RunRequest(IClientService, RunTaskRequest, string)

Constructs a new Run request.

Declaration
public RunRequest(IClientService service, RunTaskRequest body, string name)
Parameters
Type Name Description
IClientService service
RunTaskRequest body
string name

Properties

HttpMethod

Gets the HTTP method.

Declaration
public override string HttpMethod { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<Task>.HttpMethod

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<Task>.MethodName

Name

Required. The task name. For example: projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID

Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { get; }
Property Value
Type Description
string

RestPath

Gets the REST path.

Declaration
public override string RestPath { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<Task>.RestPath

Methods

GetBody()

Returns the body of the request.

Declaration
protected override object GetBody()
Returns
Type Description
object
Overrides
ClientServiceRequest<Task>.GetBody()

InitParameters()

Initializes Run parameter list.

Declaration
protected override void InitParameters()
Overrides
CloudTasksBaseServiceRequest<Task>.InitParameters()

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
In this article
Back to top Generated by DocFX