ReportStatus
Reports the outcome of one or more IN_PROGRESS tasks that a worker previously picked up with Dequeue.
SUCCEEDEDremoves the task.FAILEDmoves the task back toENQUEUED(or toDEADonce itsretry_strategyis exhausted), incrementingattempts. See Retries.IN_PROGRESSrenews the task’s keepalive lease without completing it, useful for long-running work.
Each entry is fenced by attempt, which must match the task’s current attempts counter. If a keepalive timeout has
already caused the task to be reclaimed (and possibly picked up by another worker), a report against the stale
attempt is silently ignored.
Request
entries[].attemptmust match the task’s currentattemptscounter (fromDequeue/GetTask), otherwise the entry is silently ignored.entries[].statusis one ofSTATUS_SUCCEEDED,STATUS_IN_PROGRESS,STATUS_FAILED.
{
"queue_name": "SquirrelQueue",
"entries": [
{
"task_id": "tsk_CQenhoeqha2IS5J5CqFlrbSnabvVSkfWH",
"attempt": 1,
"status": "STATUS_SUCCEEDED"
},
{
"task_id": "tsk_xjmxhujMkxWEBcNWk7e8M5qgKkoY2kVaB",
"attempt": 2,
"status": "STATUS_FAILED"
}
]
}
Response
- Returns
NotFoundif the queue does not exist.
{}