api:tools:scheduledjobs:restart
Table of Contents
API : Tools: Scheduled jobs : Restart failed
Introduction
Re-queues a failed run.
- For a one-shot job the run is put back into ScheduledJobs under its original sourceJobId, due now, with the failure counter and error cleared - so the job keeps its identity.
- For a run of a recurring job the schedule still exists, so it is made due now and un-paused instead. No duplicate is created.
The failed record is removed either way.
Request
| URL | https://api.telecomx.dk/tools/scheduledjobs/failed/:id/restart | ||
|---|---|---|---|
| Method | POST | ||
| Access level | Admin | ||
Query example
https://api.telecomx.dk/tools/scheduledjobs/failed/69e9f5ab8eaa9013e910b302/restart
Response
{ "success": true }
Errors
| Error code | Message | Description |
|---|---|---|
| 400 | invalid_data | The id is not a valid ObjectId |
| 403 | access_denied | Insufficient access level |
| 404 | not_found | No run record has that id, or the recurring job it belongs to no longer exists |
| 500 | internal_error | <Unspecified> |
api/tools/scheduledjobs/restart.txt · Last modified: by Per Møller
