Reads a requester result by its client-supplied OperationId, including terminal unavailable Task results.
using System.Net.Http.Headers;var client = new HttpClient();var request = new HttpRequestMessage{ Method = HttpMethod.Get, RequestUri = new Uri("https://example.com/api/workspace/tasks/runtime/queues/example/request-work/example"), Headers = { { "Authorization", "Bearer <token>" }, },};using (var response = await client.SendAsync(request)){ response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body);}const url = 'https://example.com/api/workspace/tasks/runtime/queues/example/request-work/example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/workspace/tasks/runtime/queues/example/request-work/example \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Query Parameters
Section titled “Query Parameters”Optional access token for clients that cannot set Authorization headers. Prefer Authorization: Bearer <token> when possible.
Responses
Section titled “Responses”OK
object
Current authorized requester result. Id is the opaque durable row Id; OperationId is the client’s idempotent key. Succeeded with Task=null preserves a committed result whose Task is currently unavailable to this requester; it never means NoWork and must not cause automatic resubmission or another assignment. ExistingWork is retained on historical receipts; new intents attempt a new assignment.
object
Durable Queue selection operation state. Pending includes bounded scan continuations.
Authorized task projection; Moltaro.Tasks.Runtime.TaskRuntimeTask.Context carries the canonical business Context identity when the task is linked.
object
Stable identity of one Moltaro resource instance.
object
When a Postponed Task returns to Idle; null in every other state.
object
object
object
object
Example
{ "Data": { "Status": 0, "Task": { "State": 0, "Mode": 0 } }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}