Retry a background task that stopped retrying
POST /Platform/jobs/failed-tasks/retry
Retry a background task that stopped retrying.
The task runs again shortly, as it was first asked: with the same inputs and on behalf of the same person or request, with a fresh set of attempts. Retry it once the cause in its error is fixed (an agent shared, a provider back); a task whose cause is not fixed stops again after the same number of failed attempts.
The task does its real work: it may message a contact, update a ticket or call a model, and work it did before it failed (an email sent) can happen again.
Body parameters
task_id: str. The failed task's id, as listed by the failed tasks route.
Returns
FailedTaskRetry
status: "retrying" or "not_found". retrying: the task runs again shortly; not_found: no failed task of your organization has this id.id: str. Requested failed task identifier.
Example request
curl -X POST "https://api.hilus.ai/Platform/jobs/failed-tasks/retry" \
-H "Authorization: Bearer $HILUS_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'