Атрибуты
{
  "id": "4a0285d0-917c-412c-8b54-f991ed966805",
  "created_at": "2024-11-21 10:25:00 UTC",
  "updated_at": "2024-11-21 10:25:06 UTC",
  "description": "Example batch",
  "on_finish": "ExampleJob::BatchJob::CallbackJob",
  "on_success": null,
  "on_discard": null,
  "callback_queue_name": null,
  "callback_priority": null,
  "enqueued_at": "2024-11-21 10:25:00 UTC",
  "discarded_at": "2024-11-21 10:25:06 UTC",
  "finished_at": "2024-11-21 10:25:06 UTC",
  "jobs_finished_at": "2024-11-21 10:25:06 UTC",
  "properties": {
    "foo": "bar"
  }
}
Коллбеки
Задание
Очередь исполнения
Приоритет
Попытки
Очередь исполнения
default
Приоритет
0
Попытки
1
{
  "job_id": "05d04f95-e64f-4663-9e40-b92d259d391f",
  "locale": "en",
  "priority": null,
  "timezone": "UTC",
  "arguments": [
    {
      "_aj_globalid": "gid://test-app/GoodJob::Batch/4a0285d0-917c-412c-8b54-f991ed966805"
    },
    {
      "event": {
        "value": "finish",
        "_aj_serialized": "ActiveJob::Serializers::SymbolSerializer"
      },
      "_aj_symbol_keys": [
        "event"
      ]
    }
  ],
  "job_class": "ExampleJob::BatchJob::CallbackJob",
  "executions": 0,
  "queue_name": "default",
  "enqueued_at": "2024-11-21T10:25:06.949290131Z",
  "scheduled_at": null,
  "provider_job_id": null,
  "exception_executions": {},
  "_good_job": {
    "id": "05d04f95-e64f-4663-9e40-b92d259d391f",
    "queue_name": "default",
    "priority": 0,
    "scheduled_at": "2024-11-21 10:25:06 UTC",
    "performed_at": "2024-11-21 10:25:06 UTC",
    "finished_at": "2024-11-21 10:25:06 UTC",
    "error": null,
    "created_at": "2024-11-21 10:25:06 UTC",
    "updated_at": "2024-11-21 10:25:06 UTC",
    "active_job_id": "05d04f95-e64f-4663-9e40-b92d259d391f",
    "concurrency_key": null,
    "cron_key": null,
    "cron_at": null,
    "batch_id": null,
    "batch_callback_id": "4a0285d0-917c-412c-8b54-f991ed966805",
    "executions_count": 1,
    "job_class": "ExampleJob::BatchJob::CallbackJob",
    "error_event": null,
    "labels": null,
    "locked_by_id": null,
    "locked_at": null
  }
}
Группы заданий
Задание
Очередь исполнения
Приоритет
Попытки
Очередь исполнения
default
Приоритет
0
Попытки
3
{
  "job_id": "f740ee59-6177-4454-8b16-cfc9486b5ff9",
  "locale": "en",
  "priority": null,
  "timezone": "UTC",
  "arguments": [
    "dead"
  ],
  "job_class": "ExampleJob",
  "executions": 2,
  "queue_name": "default",
  "enqueued_at": "2024-11-21T10:25:03.853765551Z",
  "scheduled_at": "2024-11-21T10:25:06.925579515Z",
  "provider_job_id": "f740ee59-6177-4454-8b16-cfc9486b5ff9",
  "exception_executions": {
    "[ExampleJob::DeadError]": 2
  },
  "_good_job": {
    "id": "f740ee59-6177-4454-8b16-cfc9486b5ff9",
    "queue_name": "default",
    "priority": 0,
    "scheduled_at": "2024-11-21 10:25:06 UTC",
    "performed_at": "2024-11-21 10:25:06 UTC",
    "finished_at": "2024-11-21 10:25:06 UTC",
    "error": "ExampleJob::DeadError: ExampleJob::DeadError",
    "created_at": "2024-11-21 10:25:03 UTC",
    "updated_at": "2024-11-21 10:25:06 UTC",
    "active_job_id": "f740ee59-6177-4454-8b16-cfc9486b5ff9",
    "concurrency_key": null,
    "cron_key": null,
    "cron_at": null,
    "batch_id": "4a0285d0-917c-412c-8b54-f991ed966805",
    "batch_callback_id": null,
    "executions_count": 3,
    "job_class": "ExampleJob",
    "error_event": "retry_stopped",
    "labels": null,
    "locked_by_id": null,
    "locked_at": null
  }
}
Очередь исполнения
default
Приоритет
0
Попытки
2
{
  "job_id": "0db7c977-2620-40dc-b09c-1137b988f0ba",
  "locale": "en",
  "priority": null,
  "timezone": "UTC",
  "arguments": [
    "error_once"
  ],
  "job_class": "ExampleJob",
  "executions": 1,
  "queue_name": "default",
  "enqueued_at": "2024-11-21T10:25:00.375167361Z",
  "scheduled_at": "2024-11-21T10:25:03.445922398Z",
  "provider_job_id": "0db7c977-2620-40dc-b09c-1137b988f0ba",
  "exception_executions": {
    "[StandardError]": 1
  },
  "_good_job": {
    "id": "0db7c977-2620-40dc-b09c-1137b988f0ba",
    "queue_name": "default",
    "priority": 0,
    "scheduled_at": "2024-11-21 10:25:03 UTC",
    "performed_at": "2024-11-21 10:25:03 UTC",
    "finished_at": "2024-11-21 10:25:03 UTC",
    "error": null,
    "created_at": "2024-11-21 10:25:00 UTC",
    "updated_at": "2024-11-21 10:25:03 UTC",
    "active_job_id": "0db7c977-2620-40dc-b09c-1137b988f0ba",
    "concurrency_key": null,
    "cron_key": null,
    "cron_at": null,
    "batch_id": "4a0285d0-917c-412c-8b54-f991ed966805",
    "batch_callback_id": null,
    "executions_count": 2,
    "job_class": "ExampleJob",
    "error_event": null,
    "labels": null,
    "locked_by_id": null,
    "locked_at": null
  }
}
Очередь исполнения
default
Приоритет
0
Попытки
2
{
  "job_id": "6740ef4d-db9f-4676-8793-e66db20f4f93",
  "locale": "en",
  "priority": null,
  "timezone": "UTC",
  "arguments": [
    "error_once"
  ],
  "job_class": "ExampleJob",
  "executions": 1,
  "queue_name": "default",
  "enqueued_at": "2024-11-21T10:25:00.371430841Z",
  "scheduled_at": "2024-11-21T10:25:03.457415989Z",
  "provider_job_id": "6740ef4d-db9f-4676-8793-e66db20f4f93",
  "exception_executions": {
    "[StandardError]": 1
  },
  "_good_job": {
    "id": "6740ef4d-db9f-4676-8793-e66db20f4f93",
    "queue_name": "default",
    "priority": 0,
    "scheduled_at": "2024-11-21 10:25:03 UTC",
    "performed_at": "2024-11-21 10:25:03 UTC",
    "finished_at": "2024-11-21 10:25:03 UTC",
    "error": null,
    "created_at": "2024-11-21 10:25:00 UTC",
    "updated_at": "2024-11-21 10:25:03 UTC",
    "active_job_id": "6740ef4d-db9f-4676-8793-e66db20f4f93",
    "concurrency_key": null,
    "cron_key": null,
    "cron_at": null,
    "batch_id": "4a0285d0-917c-412c-8b54-f991ed966805",
    "batch_callback_id": null,
    "executions_count": 2,
    "job_class": "ExampleJob",
    "error_event": null,
    "labels": null,
    "locked_by_id": null,
    "locked_at": null
  }
}