IRPCBackgroundOperationsAdmin.GetAsyncTasksRange

View as Markdown

Administration API / specialized admin session idempotent

Gets a page of asynchronous tasks, oldest or newest first, optionally only tasks in given states.

ServiceBackground operations MFiles.IRPCBackgroundOperationsAdmin
gRPC method/MFiles.IRPCBackgroundOperationsAdmin/GetAsyncTasksRange
HTTP (mf-http-grpc)POST /grpc/v1/get-async-tasks-range
RequestGetAsyncTasksRangeRequest
ResponseGetAsyncTasksRangeResponse
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: GetAsyncTasksRangeRequest

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
async_task_startint64The first task ID to return, or -1 to start from the newest (latest true) or the oldest (latest false) task.
max_countuint32The maximum number of tasks to return. 0 returns nothing.
latestboolTrue to go from async_task_start towards older tasks (descending IDs), false to go towards newer tasks (ascending IDs).
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.

Response: GetAsyncTasksRangeResponse

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
async_tasks[]repeated AsyncTaskThe tasks, in the order given by latest.
async_tasks[].idint64Task ID.
async_tasks[].typestringTask type name.
async_tasks[].definitionstringThe display string of the task definition.
async_tasks[].is_runningboolTrue if the task is currently running.
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).
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).
async_tasks[].last_run_succeededboolTrue if the last run was successful, false otherwise.
async_tasks[].last_run_errorsstringError string from the last run (if any).
async_tasks[].canceledboolTrue if the task is canceled.
async_tasks[].progress_infostringThe progress info string of the task.
async_tasks[].output_infostringThe output info string of the task.