Skip to main content
POST
/
job
/
retries
Set Job Retries Async (POST)
curl --request POST \
  --url http://{host}:{port}/{contextPath}/job/retries \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "retries": 5,
  "dueDate": "2017-04-06T13:57:45.000+0200",
  "jobIds": [
    "aJob",
    "secondJob"
  ],
  "jobQuery": {
    "dueDates": [
      {
        "operator": "gt",
        "value": "2012-07-17T17:00:00.000+0200"
      },
      {
        "operator": "lt",
        "value": "2012-07-17T18:00:00.000+0200"
      }
    ]
  }
}'
{
  "id": "aBatchId",
  "type": "aBatchType",
  "totalJobs": 10,
  "batchJobsPerSeed": 100,
  "jobsCreated": 10,
  "invocationsPerBatchJob": 1,
  "seedJobDefinitionId": "aSeedJobDefinitionId",
  "monitorJobDefinitionId": "aMonitorJobDefinitionId",
  "batchJobDefinitionId": "aBatchJobDefinitionId",
  "suspened": false,
  "tenantId": "aTenantId",
  "createUserId": "userId"
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json

Defines the number of retries for a selection of jobs. Please note that if both jobIds and jobQuery are provided, then retries will be set on the union of these sets.

jobIds
string[] | null

A list of job ids to set retries for.

jobQuery
object

A Job instance query which defines a list of Job instances

dueDate
string<date-time> | null

The due date to set for the job. A due date indicates when this job is ready for execution. Jobs with due dates in the past will be scheduled for execution.

retries
integer | null

The number of retries to set for the resource. Must be >= 0. If this is 0, an incident is created and the task, or job, cannot be fetched, or acquired anymore unless the retries are increased again. Can not be null.

Response

Request successful.

id
string | null

The id of the batch.

type
string | null

The type of the batch. See the User Guide for more information about batch types.

totalJobs
integer | null

The total jobs of a batch is the number of batch execution jobs required to complete the batch.

jobsCreated
integer | null

The number of batch execution jobs already created by the seed job.

batchJobsPerSeed
integer | null

The number of batch execution jobs created per seed job invocation. The batch seed job is invoked until it has created all batch execution jobs required by the batch (see totalJobs property).

invocationsPerBatchJob
integer | null

Every batch execution job invokes the command executed by the batch invocationsPerBatchJob times. E.g., for a process instance migration batch this specifies the number of process instances which are migrated per batch execution job.

seedJobDefinitionId
string | null

The job definition id for the seed jobs of this batch.

monitorJobDefinitionId
string | null

The job definition id for the monitor jobs of this batch.

batchJobDefinitionId
string | null

The job definition id for the batch execution jobs of this batch.

suspended
boolean | null

Indicates whether this batch is suspended or not.

tenantId
string | null

The tenant id of the batch.

createUserId
string | null

The id of the user that created the batch.

startTime
string<date-time> | null

The time the batch was started. Default format yyyy-MM-dd'T'HH:mm:ss.SSSZ. For further information, please see the [documentation] (https://docs.camunda.org/manual/7.22/reference/rest/overview/date-format/)

executionStartTime
string<date-time> | null

The time the batch execution was started, i.e., at least one batch job has been executed. Default format yyyy-MM-dd'T'HH:mm:ss.SSSZ. For further information, please see the [documentation] (https://docs.camunda.org/manual/7.22/reference/rest/overview/date-format/)