Skip to main content

Get all running and pending batch operations

GET 

/v2/projects/:projectId/current-batch-jobs

Returns all running and pending batch operations. Completed batch operations are returned only if they are not older than 1 hour. If user doesn't have permission to view all batch operations, only their operations are returned.

Request

Path Parameters

    projectId int64required

Responses

OK

Schema
    _embedded object
    batchJobs object[]
  • Array [
  • id int64required

    Batch job id

    status stringrequired

    Possible values: [PENDING, RUNNING, SUCCESS, FAILED, CANCELLED, DEBOUNCED]

    Status of the batch job

    type stringrequired

    Possible values: [PRE_TRANSLATE_BT_TM, MACHINE_TRANSLATE, AUTO_TRANSLATE, DELETE_KEYS, SET_TRANSLATIONS_STATE, CLEAR_TRANSLATIONS, COPY_TRANSLATIONS, TAG_KEYS, UNTAG_KEYS, SET_KEYS_NAMESPACE, AUTOMATION]

    Type of the batch job

    progress int32required

    Total items, that have been processed so far

    totalItems int32required

    Total items

    author object
    id int64required
    username stringrequired
    name string
    avatar object
    large stringrequired
    thumbnail stringrequired
    deleted booleanrequired
    createdAt int64required

    The time when the job created

    updatedAt int64required

    The time when the job was last updated (status change)

    activityRevisionId int64

    The activity revision id, that stores the activity details of the job

    errorMessage string

    If the job failed, this is the error message

  • ]
Loading...