Use the following method to rerun failed jobs in the scheduler. For each job to be restarted, the scheduler creates an immediate single-run copy of job, to replace the one that failed. Therefore, all jobs listed in the request body will run once immediately after issuing this command. The single-run copies have a misfire policy set so that they do not trigger any further failures (MISFIRE_ INSTRUCTION_IGNORE_MISFIRE_POLICY). If the single-run copies fail themselves, no further attempts are made automatically.
Method | URL | ||
POST | http://<host>:<port>/jasperserver[-pro]/rest_v2/jobs/restart/ | ||
Content-Type | Content | ||
application/xml | A well-formed XML jobIdList descriptor that specifies the IDs of the jobs. See example below. | ||
Return Value on Success | Typical Return Values on Failure | ||
200 OK |
|
The XML format of the jobIdList descriptor in the request body is identical to the one used when pausing jobs:
Recommended Comments
There are no comments to display.