Атрибуты
{
  "id": "fb0d9b87-7072-46c8-b37b-5531676d6830",
  "created_at": "2025-08-30 01:24:30 UTC",
  "updated_at": "2025-08-30 01:24:37 UTC",
  "description": "Example batch",
  "properties": {
    "foo": "bar"
  },
  "on_finish": "ExampleJob::BatchJob::CallbackJob",
  "on_success": null,
  "on_discard": null,
  "callback_queue_name": null,
  "callback_priority": null,
  "enqueued_at": "2025-08-30 01:24:30 UTC",
  "discarded_at": "2025-08-30 01:24:36 UTC",
  "finished_at": "2025-08-30 01:24:37 UTC",
  "jobs_finished_at": "2025-08-30 01:24:36 UTC"
}
Коллбеки
Задание
Очередь исполнения
Приоритет
Метки
Попытки
Очередь исполнения
default
Приоритет
0
Метки
Попытки
1
{
  "job_id": "1181a95e-a049-4938-8902-0cad658bd6cd",
  "locale": "en",
  "priority": null,
  "timezone": "UTC",
  "arguments": [
    {
      "_aj_globalid": "gid://test-app/GoodJob::Batch/fb0d9b87-7072-46c8-b37b-5531676d6830"
    },
    {
      "event": {
        "value": "finish",
        "_aj_serialized": "ActiveJob::Serializers::SymbolSerializer"
      },
      "_aj_symbol_keys": [
        "event"
      ]
    }
  ],
  "job_class": "ExampleJob::BatchJob::CallbackJob",
  "executions": 0,
  "queue_name": "default",
  "enqueued_at": "2025-08-30T01:24:36.892876902Z",
  "scheduled_at": null,
  "provider_job_id": null,
  "exception_executions": {},
  "_good_job": {
    "id": "1181a95e-a049-4938-8902-0cad658bd6cd",
    "queue_name": "default",
    "priority": 0,
    "scheduled_at": "2025-08-30 01:24:36 UTC",
    "performed_at": "2025-08-30 01:24:36 UTC",
    "finished_at": "2025-08-30 01:24:36 UTC",
    "error": null,
    "created_at": "2025-08-30 01:24:36 UTC",
    "updated_at": "2025-08-30 01:24:36 UTC",
    "active_job_id": "1181a95e-a049-4938-8902-0cad658bd6cd",
    "concurrency_key": "ExampleJob::BatchJob::CallbackJob",
    "cron_key": null,
    "cron_at": null,
    "batch_id": null,
    "batch_callback_id": "fb0d9b87-7072-46c8-b37b-5531676d6830",
    "executions_count": 1,
    "job_class": "ExampleJob::BatchJob::CallbackJob",
    "error_event": null,
    "labels": null,
    "locked_by_id": null,
    "locked_at": null
  }
}
Группы заданий
Задание
Очередь исполнения
Приоритет
Метки
Попытки
Очередь исполнения
default
Приоритет
0
Метки
slow
Попытки
1
{
  "job_id": "40a6640c-3f17-460d-9b9a-7a5a746ed572",
  "locale": "en",
  "priority": null,
  "timezone": "UTC",
  "arguments": [
    "slow"
  ],
  "job_class": "ExampleJob",
  "executions": 0,
  "queue_name": "default",
  "enqueued_at": "2025-08-30T01:24:30.209219712Z",
  "scheduled_at": null,
  "provider_job_id": null,
  "exception_executions": {},
  "_good_job": {
    "id": "40a6640c-3f17-460d-9b9a-7a5a746ed572",
    "queue_name": "default",
    "priority": 0,
    "scheduled_at": "2025-08-30 01:24:30 UTC",
    "performed_at": "2025-08-30 01:24:30 UTC",
    "finished_at": "2025-08-30 01:24:35 UTC",
    "error": null,
    "created_at": "2025-08-30 01:24:30 UTC",
    "updated_at": "2025-08-30 01:24:35 UTC",
    "active_job_id": "40a6640c-3f17-460d-9b9a-7a5a746ed572",
    "concurrency_key": "ExampleJob",
    "cron_key": null,
    "cron_at": null,
    "batch_id": "fb0d9b87-7072-46c8-b37b-5531676d6830",
    "batch_callback_id": null,
    "executions_count": 1,
    "job_class": "ExampleJob",
    "error_event": null,
    "labels": [
      "slow"
    ],
    "locked_by_id": null,
    "locked_at": null
  }
}
Очередь исполнения
default
Приоритет
0
Метки
error_once
Попытки
2
{
  "job_id": "a73f25f1-1599-4398-a81f-cf0c78a94d29",
  "locale": "en",
  "priority": null,
  "timezone": "UTC",
  "arguments": [
    "error_once"
  ],
  "job_class": "ExampleJob",
  "executions": 1,
  "queue_name": "default",
  "enqueued_at": "2025-08-30T01:24:30.275849114Z",
  "scheduled_at": "2025-08-30T01:24:33.371330138Z",
  "provider_job_id": "a73f25f1-1599-4398-a81f-cf0c78a94d29",
  "exception_executions": {
    "[StandardError]": 1
  },
  "_good_job": {
    "id": "a73f25f1-1599-4398-a81f-cf0c78a94d29",
    "queue_name": "default",
    "priority": 0,
    "scheduled_at": "2025-08-30 01:24:33 UTC",
    "performed_at": "2025-08-30 01:24:33 UTC",
    "finished_at": "2025-08-30 01:24:33 UTC",
    "error": null,
    "created_at": "2025-08-30 01:24:30 UTC",
    "updated_at": "2025-08-30 01:24:33 UTC",
    "active_job_id": "a73f25f1-1599-4398-a81f-cf0c78a94d29",
    "concurrency_key": "ExampleJob",
    "cron_key": null,
    "cron_at": null,
    "batch_id": "fb0d9b87-7072-46c8-b37b-5531676d6830",
    "batch_callback_id": null,
    "executions_count": 2,
    "job_class": "ExampleJob",
    "error_event": null,
    "labels": [
      "error_once"
    ],
    "locked_by_id": null,
    "locked_at": null
  }
}
Очередь исполнения
default
Приоритет
0
Метки
dead
Попытки
3
{
  "job_id": "5fb90ca1-0c90-48d0-b52f-a076968b7fff",
  "locale": "en",
  "priority": null,
  "timezone": "UTC",
  "arguments": [
    "dead"
  ],
  "job_class": "ExampleJob",
  "executions": 2,
  "queue_name": "default",
  "enqueued_at": "2025-08-30T01:24:33.757311280Z",
  "scheduled_at": "2025-08-30T01:24:36.783537086Z",
  "provider_job_id": "5fb90ca1-0c90-48d0-b52f-a076968b7fff",
  "exception_executions": {
    "[ExampleJob::DeadError]": 2
  },
  "_good_job": {
    "id": "5fb90ca1-0c90-48d0-b52f-a076968b7fff",
    "queue_name": "default",
    "priority": 0,
    "scheduled_at": "2025-08-30 01:24:36 UTC",
    "performed_at": "2025-08-30 01:24:36 UTC",
    "finished_at": "2025-08-30 01:24:36 UTC",
    "error": "ExampleJob::DeadError: ExampleJob::DeadError",
    "created_at": "2025-08-30 01:24:33 UTC",
    "updated_at": "2025-08-30 01:24:36 UTC",
    "active_job_id": "5fb90ca1-0c90-48d0-b52f-a076968b7fff",
    "concurrency_key": "ExampleJob",
    "cron_key": null,
    "cron_at": null,
    "batch_id": "fb0d9b87-7072-46c8-b37b-5531676d6830",
    "batch_callback_id": null,
    "executions_count": 3,
    "job_class": "ExampleJob",
    "error_event": "retry_stopped",
    "labels": [
      "dead"
    ],
    "locked_by_id": null,
    "locked_at": null
  }
}