Атрибуты
{
  "id": "4940b793-f4e1-4088-bb41-6c1e1bcc1ce2",
  "created_at": "2024-11-21 10:21:00 UTC",
  "updated_at": "2024-11-21 10:38:26 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:21:00 UTC",
  "discarded_at": null,
  "finished_at": "2024-11-21 10:38:26 UTC",
  "jobs_finished_at": "2024-11-21 10:38:25 UTC",
  "properties": {
    "foo": "bar"
  }
}
Коллбеки
Задание
Очередь исполнения
Приоритет
Попытки
Очередь исполнения
default
Приоритет
0
Попытки
1
{
  "job_id": "b9777455-42f3-4d3c-81cc-bde91bb5453d",
  "locale": "en",
  "priority": null,
  "timezone": "UTC",
  "arguments": [
    {
      "_aj_globalid": "gid://test-app/GoodJob::Batch/4940b793-f4e1-4088-bb41-6c1e1bcc1ce2"
    },
    {
      "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:38:25.702259498Z",
  "scheduled_at": null,
  "provider_job_id": null,
  "exception_executions": {},
  "_good_job": {
    "id": "b9777455-42f3-4d3c-81cc-bde91bb5453d",
    "queue_name": "default",
    "priority": 0,
    "scheduled_at": "2024-11-21 10:38:25 UTC",
    "performed_at": "2024-11-21 10:38:26 UTC",
    "finished_at": "2024-11-21 10:38:26 UTC",
    "error": null,
    "created_at": "2024-11-21 10:38:25 UTC",
    "updated_at": "2024-11-21 10:38:26 UTC",
    "active_job_id": "b9777455-42f3-4d3c-81cc-bde91bb5453d",
    "concurrency_key": null,
    "cron_key": null,
    "cron_at": null,
    "batch_id": null,
    "batch_callback_id": "4940b793-f4e1-4088-bb41-6c1e1bcc1ce2",
    "executions_count": 1,
    "job_class": "ExampleJob::BatchJob::CallbackJob",
    "error_event": null,
    "labels": null,
    "locked_by_id": null,
    "locked_at": null
  }
}
Группы заданий
Задание
Очередь исполнения
Приоритет
Попытки
Очередь исполнения
default
Приоритет
0
Попытки
6
{
  "job_id": "820b7fbc-4d9a-4641-a330-6151582ea905",
  "locale": "en",
  "priority": null,
  "timezone": "UTC",
  "arguments": [
    "error_five_times"
  ],
  "job_class": "ExampleJob",
  "executions": 5,
  "queue_name": "default",
  "enqueued_at": "2024-11-21T10:27:51.784122816Z",
  "scheduled_at": "2024-11-21T10:38:23.192969877Z",
  "provider_job_id": "820b7fbc-4d9a-4641-a330-6151582ea905",
  "exception_executions": {
    "[StandardError]": 5
  },
  "_good_job": {
    "id": "820b7fbc-4d9a-4641-a330-6151582ea905",
    "queue_name": "default",
    "priority": 0,
    "scheduled_at": "2024-11-21 10:38:23 UTC",
    "performed_at": "2024-11-21 10:38:25 UTC",
    "finished_at": "2024-11-21 10:38:25 UTC",
    "error": null,
    "created_at": "2024-11-21 10:27:51 UTC",
    "updated_at": "2024-11-21 10:38:25 UTC",
    "active_job_id": "820b7fbc-4d9a-4641-a330-6151582ea905",
    "concurrency_key": null,
    "cron_key": null,
    "cron_at": null,
    "batch_id": "4940b793-f4e1-4088-bb41-6c1e1bcc1ce2",
    "batch_callback_id": null,
    "executions_count": 6,
    "job_class": "ExampleJob",
    "error_event": null,
    "labels": null,
    "locked_by_id": null,
    "locked_at": null
  }
}
Очередь исполнения
default
Приоритет
0
Попытки
2
{
  "job_id": "a265a11e-fb78-42e5-9905-ae3602a5aa5e",
  "locale": "en",
  "priority": null,
  "timezone": "UTC",
  "arguments": [
    "error_once"
  ],
  "job_class": "ExampleJob",
  "executions": 1,
  "queue_name": "default",
  "enqueued_at": "2024-11-21T10:21:00.362051512Z",
  "scheduled_at": "2024-11-21T10:21:03.371970996Z",
  "provider_job_id": "a265a11e-fb78-42e5-9905-ae3602a5aa5e",
  "exception_executions": {
    "[StandardError]": 1
  },
  "_good_job": {
    "id": "a265a11e-fb78-42e5-9905-ae3602a5aa5e",
    "queue_name": "default",
    "priority": 0,
    "scheduled_at": "2024-11-21 10:21:03 UTC",
    "performed_at": "2024-11-21 10:21:03 UTC",
    "finished_at": "2024-11-21 10:21:03 UTC",
    "error": null,
    "created_at": "2024-11-21 10:21:00 UTC",
    "updated_at": "2024-11-21 10:21:03 UTC",
    "active_job_id": "a265a11e-fb78-42e5-9905-ae3602a5aa5e",
    "concurrency_key": null,
    "cron_key": null,
    "cron_at": null,
    "batch_id": "4940b793-f4e1-4088-bb41-6c1e1bcc1ce2",
    "batch_callback_id": null,
    "executions_count": 2,
    "job_class": "ExampleJob",
    "error_event": null,
    "labels": null,
    "locked_by_id": null,
    "locked_at": null
  }
}
Очередь исполнения
default
Приоритет
0
Попытки
1
{
  "job_id": "3b8ad00e-7ba2-4d92-acbe-f3bd1c0efaf9",
  "locale": "en",
  "priority": null,
  "timezone": "UTC",
  "arguments": [
    "success"
  ],
  "job_class": "ExampleJob",
  "executions": 0,
  "queue_name": "default",
  "enqueued_at": "2024-11-21T10:21:00.144155271Z",
  "scheduled_at": null,
  "provider_job_id": null,
  "exception_executions": {},
  "_good_job": {
    "id": "3b8ad00e-7ba2-4d92-acbe-f3bd1c0efaf9",
    "queue_name": "default",
    "priority": 0,
    "scheduled_at": "2024-11-21 10:21:00 UTC",
    "performed_at": "2024-11-21 10:21:00 UTC",
    "finished_at": "2024-11-21 10:21:00 UTC",
    "error": null,
    "created_at": "2024-11-21 10:21:00 UTC",
    "updated_at": "2024-11-21 10:21:00 UTC",
    "active_job_id": "3b8ad00e-7ba2-4d92-acbe-f3bd1c0efaf9",
    "concurrency_key": null,
    "cron_key": null,
    "cron_at": null,
    "batch_id": "4940b793-f4e1-4088-bb41-6c1e1bcc1ce2",
    "batch_callback_id": null,
    "executions_count": 1,
    "job_class": "ExampleJob",
    "error_event": null,
    "labels": null,
    "locked_by_id": null,
    "locked_at": null
  }
}