Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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.
See: Cloud Tasks API Reference for cloudtasks.projects.locations.queues.tasks.run
.
Synopsis
- type ProjectsLocationsQueuesTasksRunResource = "v2beta3" :> (CaptureMode "name" "run" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] RunTaskRequest :> Post '[JSON] Task))))))))
- projectsLocationsQueuesTasksRun :: RunTaskRequest -> Text -> ProjectsLocationsQueuesTasksRun
- data ProjectsLocationsQueuesTasksRun
- plqtrXgafv :: Lens' ProjectsLocationsQueuesTasksRun (Maybe Xgafv)
- plqtrUploadProtocol :: Lens' ProjectsLocationsQueuesTasksRun (Maybe Text)
- plqtrAccessToken :: Lens' ProjectsLocationsQueuesTasksRun (Maybe Text)
- plqtrUploadType :: Lens' ProjectsLocationsQueuesTasksRun (Maybe Text)
- plqtrPayload :: Lens' ProjectsLocationsQueuesTasksRun RunTaskRequest
- plqtrName :: Lens' ProjectsLocationsQueuesTasksRun Text
- plqtrCallback :: Lens' ProjectsLocationsQueuesTasksRun (Maybe Text)
REST Resource
type ProjectsLocationsQueuesTasksRunResource = "v2beta3" :> (CaptureMode "name" "run" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] RunTaskRequest :> Post '[JSON] Task)))))))) Source #
A resource alias for cloudtasks.projects.locations.queues.tasks.run
method which the
ProjectsLocationsQueuesTasksRun
request conforms to.
Creating a Request
projectsLocationsQueuesTasksRun Source #
Creates a value of ProjectsLocationsQueuesTasksRun
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsLocationsQueuesTasksRun Source #
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.
See: projectsLocationsQueuesTasksRun
smart constructor.
Instances
Request Lenses
plqtrXgafv :: Lens' ProjectsLocationsQueuesTasksRun (Maybe Xgafv) Source #
V1 error format.
plqtrUploadProtocol :: Lens' ProjectsLocationsQueuesTasksRun (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
plqtrAccessToken :: Lens' ProjectsLocationsQueuesTasksRun (Maybe Text) Source #
OAuth access token.
plqtrUploadType :: Lens' ProjectsLocationsQueuesTasksRun (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
plqtrPayload :: Lens' ProjectsLocationsQueuesTasksRun RunTaskRequest Source #
Multipart request metadata.