IRPCBackgroundOperationsAdmin.WaitForAsyncTaskCompletion

View as Markdown

Administration API / specialized admin session idempotent

Waits until the given asynchronous tasks have finished, then optionally returns a list of tasks.

ServiceBackground operations MFiles.IRPCBackgroundOperationsAdmin
gRPC method/MFiles.IRPCBackgroundOperationsAdmin/WaitForAsyncTaskCompletion
HTTP (mf-http-grpc)POST /grpc/v1/wait-for-async-task-completion
RequestWaitForAsyncTaskCompletionRequest
ResponseWaitForAsyncTaskCompletionResponse
Book and levelAdministration API, specialized
Kindadmin
SessionRequired: the session ID from LogIn in the mfiles-session-id-bin metadata.
Idempotentyes
Returns metadata structure versionno
Streamingnone (unary)

Remarks

Request: WaitForAsyncTaskCompletionRequest

A structure that specifies the request type for the WaitForAsyncTaskCompletion method.

Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

FieldTypeDescription
obsolete_async_taskint64Obsolete. Set 0; a non-zero ID is waited for in addition to async_tasks.
tasks_requestGetAsyncTasksRangeRequestOptional. If set, the response carries the result of this GetAsyncTasksRange request, run after the wait. max_count must be at most 50.
tasks_request.async_task_startint64The first task ID to return, or -1 to start from the newest (latest true) or the oldest (latest false) task.
tasks_request.max_countuint32The maximum number of tasks to return. 0 returns nothing.
tasks_request.latestboolTrue to go from async_task_start towards older tasks (descending IDs), false to go towards newer tasks (ascending IDs).
tasks_request.filtersuint32The task states to include, as a sum of bit values: 1 queued, 2 running, 4 completed successfully, 8 cancelled, 16 failed. 0 includes all tasks.
async_tasks[]repeated int64The IDs of the tasks to wait for, at most 50.

Response: WaitForAsyncTaskCompletionResponse

A structure that specifies the response type for the WaitForAsyncTaskCompletion method.

Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

FieldTypeDescription
tasks_responseGetAsyncTasksRangeResponseThe result of tasks_request; unset if the request had none.
tasks_response.async_tasks[]repeated AsyncTaskThe tasks, in the order given by latest.
tasks_response.async_tasks[].idint64Task ID.
tasks_response.async_tasks[].typestringTask type name.
tasks_response.async_tasks[].definitionstringThe display string of the task definition.
tasks_response.async_tasks[].is_runningboolTrue if the task is currently running.
tasks_response.async_tasks[].last_run_started_utcgoogle.protobuf.TimestampThe last time the task ran started. Zero to indicate that the task has never run (or is still running for the first time).
tasks_response.async_tasks[].last_run_ended_utcgoogle.protobuf.TimestampThe last time the task ran ended. Zero to indicate that the task has never run (or is still running for the first time).
tasks_response.async_tasks[].last_run_succeededboolTrue if the last run was successful, false otherwise.
tasks_response.async_tasks[].last_run_errorsstringError string from the last run (if any).
tasks_response.async_tasks[].canceledboolTrue if the task is canceled.
tasks_response.async_tasks[].progress_infostringThe progress info string of the task.
tasks_response.async_tasks[].output_infostringThe output info string of the task.