Атрибуты
{
  "id": "c4f3bc01-4278-4c86-b9ac-b4abdb8db68d",
  "created_at": "2024-11-21 09:19:00 UTC",
  "updated_at": "2024-11-21 09:19:07 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 09:19:00 UTC",
  "discarded_at": "2024-11-21 09:19:06 UTC",
  "finished_at": "2024-11-21 09:19:07 UTC",
  "jobs_finished_at": "2024-11-21 09:19:06 UTC",
  "properties": {
    "foo": "bar"
  }
}
Коллбеки
Задание
Очередь исполнения
Приоритет
Попытки
Очередь исполнения
default
Приоритет
0
Попытки
1
{
  "job_id": "87449002-fb77-4b02-b3a3-9150b499f675",
  "locale": "en",
  "priority": null,
  "timezone": "UTC",
  "arguments": [
    {
      "_aj_globalid": "gid://test-app/GoodJob::Batch/c4f3bc01-4278-4c86-b9ac-b4abdb8db68d"
    },
    {
      "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-21T09:19:06.985742718Z",
  "scheduled_at": null,
  "provider_job_id": null,
  "exception_executions": {},
  "_good_job": {
    "id": "87449002-fb77-4b02-b3a3-9150b499f675",
    "queue_name": "default",
    "priority": 0,
    "scheduled_at": "2024-11-21 09:19:06 UTC",
    "performed_at": "2024-11-21 09:19:07 UTC",
    "finished_at": "2024-11-21 09:19:07 UTC",
    "error": null,
    "created_at": "2024-11-21 09:19:06 UTC",
    "updated_at": "2024-11-21 09:19:07 UTC",
    "active_job_id": "87449002-fb77-4b02-b3a3-9150b499f675",
    "concurrency_key": null,
    "cron_key": null,
    "cron_at": null,
    "batch_id": null,
    "batch_callback_id": "c4f3bc01-4278-4c86-b9ac-b4abdb8db68d",
    "executions_count": 1,
    "job_class": "ExampleJob::BatchJob::CallbackJob",
    "error_event": null,
    "labels": null,
    "locked_by_id": null,
    "locked_at": null
  }
}
Группы заданий
Задание
Очередь исполнения
Приоритет
Попытки
Очередь исполнения
default
Приоритет
0
Попытки
2
{
  "job_id": "e30c43af-696b-449d-aa12-95d58ca260e8",
  "locale": "en",
  "priority": null,
  "timezone": "UTC",
  "arguments": [
    "error_once"
  ],
  "job_class": "ExampleJob",
  "executions": 1,
  "queue_name": "default",
  "enqueued_at": "2024-11-21T09:19:00.266548623Z",
  "scheduled_at": "2024-11-21T09:19:03.365474421Z",
  "provider_job_id": "e30c43af-696b-449d-aa12-95d58ca260e8",
  "exception_executions": {
    "[StandardError]": 1
  },
  "_good_job": {
    "id": "e30c43af-696b-449d-aa12-95d58ca260e8",
    "queue_name": "default",
    "priority": 0,
    "scheduled_at": "2024-11-21 09:19:03 UTC",
    "performed_at": "2024-11-21 09:19:03 UTC",
    "finished_at": "2024-11-21 09:19:03 UTC",
    "error": null,
    "created_at": "2024-11-21 09:19:00 UTC",
    "updated_at": "2024-11-21 09:19:03 UTC",
    "active_job_id": "e30c43af-696b-449d-aa12-95d58ca260e8",
    "concurrency_key": null,
    "cron_key": null,
    "cron_at": null,
    "batch_id": "c4f3bc01-4278-4c86-b9ac-b4abdb8db68d",
    "batch_callback_id": null,
    "executions_count": 2,
    "job_class": "ExampleJob",
    "error_event": null,
    "labels": null,
    "locked_by_id": null,
    "locked_at": null
  }
}
Очередь исполнения
default
Приоритет
0
Попытки
3
{
  "job_id": "e1d425e3-a680-45dc-bb89-fefc6c468d3f",
  "locale": "en",
  "priority": null,
  "timezone": "UTC",
  "arguments": [
    "dead"
  ],
  "job_class": "ExampleJob",
  "executions": 2,
  "queue_name": "default",
  "enqueued_at": "2024-11-21T09:19:03.750439242Z",
  "scheduled_at": "2024-11-21T09:19:06.865241417Z",
  "provider_job_id": "e1d425e3-a680-45dc-bb89-fefc6c468d3f",
  "exception_executions": {
    "[ExampleJob::DeadError]": 2
  },
  "_good_job": {
    "id": "e1d425e3-a680-45dc-bb89-fefc6c468d3f",
    "queue_name": "default",
    "priority": 0,
    "scheduled_at": "2024-11-21 09:19:06 UTC",
    "performed_at": "2024-11-21 09:19:06 UTC",
    "finished_at": "2024-11-21 09:19:06 UTC",
    "error": "ExampleJob::DeadError: ExampleJob::DeadError",
    "created_at": "2024-11-21 09:19:03 UTC",
    "updated_at": "2024-11-21 09:19:06 UTC",
    "active_job_id": "e1d425e3-a680-45dc-bb89-fefc6c468d3f",
    "concurrency_key": null,
    "cron_key": null,
    "cron_at": null,
    "batch_id": "c4f3bc01-4278-4c86-b9ac-b4abdb8db68d",
    "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": "de84a95f-669d-4ca2-96f1-8abd2d2202ba",
  "locale": "en",
  "priority": null,
  "timezone": "UTC",
  "arguments": [
    "error_once"
  ],
  "job_class": "ExampleJob",
  "executions": 1,
  "queue_name": "default",
  "enqueued_at": "2024-11-21T09:19:00.229429554Z",
  "scheduled_at": "2024-11-21T09:19:03.310084459Z",
  "provider_job_id": "de84a95f-669d-4ca2-96f1-8abd2d2202ba",
  "exception_executions": {
    "[StandardError]": 1
  },
  "_good_job": {
    "id": "de84a95f-669d-4ca2-96f1-8abd2d2202ba",
    "queue_name": "default",
    "priority": 0,
    "scheduled_at": "2024-11-21 09:19:03 UTC",
    "performed_at": "2024-11-21 09:19:03 UTC",
    "finished_at": "2024-11-21 09:19:03 UTC",
    "error": null,
    "created_at": "2024-11-21 09:19:00 UTC",
    "updated_at": "2024-11-21 09:19:03 UTC",
    "active_job_id": "de84a95f-669d-4ca2-96f1-8abd2d2202ba",
    "concurrency_key": null,
    "cron_key": null,
    "cron_at": null,
    "batch_id": "c4f3bc01-4278-4c86-b9ac-b4abdb8db68d",
    "batch_callback_id": null,
    "executions_count": 2,
    "job_class": "ExampleJob",
    "error_event": null,
    "labels": null,
    "locked_by_id": null,
    "locked_at": null
  }
}