Атрибуты
{
  "id": "c68bab32-1232-4db3-9a81-7e6ac0111803",
  "created_at": "2024-11-21 08:29:00 UTC",
  "updated_at": "2024-11-21 08:29: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 08:29:00 UTC",
  "discarded_at": "2024-11-21 08:29:06 UTC",
  "finished_at": "2024-11-21 08:29:07 UTC",
  "jobs_finished_at": "2024-11-21 08:29:06 UTC",
  "properties": {
    "foo": "bar"
  }
}
Коллбеки
Задание
Очередь исполнения
Приоритет
Попытки
Очередь исполнения
default
Приоритет
0
Попытки
1
{
  "job_id": "e035fa01-f2c3-47ec-85b8-f45162e8ff66",
  "locale": "en",
  "priority": null,
  "timezone": "UTC",
  "arguments": [
    {
      "_aj_globalid": "gid://test-app/GoodJob::Batch/c68bab32-1232-4db3-9a81-7e6ac0111803"
    },
    {
      "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-21T08:29:06.992603243Z",
  "scheduled_at": null,
  "provider_job_id": null,
  "exception_executions": {},
  "_good_job": {
    "id": "e035fa01-f2c3-47ec-85b8-f45162e8ff66",
    "queue_name": "default",
    "priority": 0,
    "scheduled_at": "2024-11-21 08:29:06 UTC",
    "performed_at": "2024-11-21 08:29:07 UTC",
    "finished_at": "2024-11-21 08:29:07 UTC",
    "error": null,
    "created_at": "2024-11-21 08:29:06 UTC",
    "updated_at": "2024-11-21 08:29:07 UTC",
    "active_job_id": "e035fa01-f2c3-47ec-85b8-f45162e8ff66",
    "concurrency_key": null,
    "cron_key": null,
    "cron_at": null,
    "batch_id": null,
    "batch_callback_id": "c68bab32-1232-4db3-9a81-7e6ac0111803",
    "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": "f934ce46-7f47-4829-929f-4c1f35667c70",
  "locale": "en",
  "priority": null,
  "timezone": "UTC",
  "arguments": [
    "dead"
  ],
  "job_class": "ExampleJob",
  "executions": 2,
  "queue_name": "default",
  "enqueued_at": "2024-11-21T08:29:03.527480773Z",
  "scheduled_at": "2024-11-21T08:29:06.965621638Z",
  "provider_job_id": "f934ce46-7f47-4829-929f-4c1f35667c70",
  "exception_executions": {
    "[ExampleJob::DeadError]": 2
  },
  "_good_job": {
    "id": "f934ce46-7f47-4829-929f-4c1f35667c70",
    "queue_name": "default",
    "priority": 0,
    "scheduled_at": "2024-11-21 08:29:06 UTC",
    "performed_at": "2024-11-21 08:29:06 UTC",
    "finished_at": "2024-11-21 08:29:06 UTC",
    "error": "ExampleJob::DeadError: ExampleJob::DeadError",
    "created_at": "2024-11-21 08:29:03 UTC",
    "updated_at": "2024-11-21 08:29:06 UTC",
    "active_job_id": "f934ce46-7f47-4829-929f-4c1f35667c70",
    "concurrency_key": null,
    "cron_key": null,
    "cron_at": null,
    "batch_id": "c68bab32-1232-4db3-9a81-7e6ac0111803",
    "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
Попытки
1
{
  "job_id": "ced07174-fd45-466c-80f6-9c382293bbd2",
  "locale": "en",
  "priority": null,
  "timezone": "UTC",
  "arguments": [
    "slow"
  ],
  "job_class": "ExampleJob",
  "executions": 0,
  "queue_name": "default",
  "enqueued_at": "2024-11-21T08:29:00.119551703Z",
  "scheduled_at": null,
  "provider_job_id": null,
  "exception_executions": {},
  "_good_job": {
    "id": "ced07174-fd45-466c-80f6-9c382293bbd2",
    "queue_name": "default",
    "priority": 0,
    "scheduled_at": "2024-11-21 08:29:00 UTC",
    "performed_at": "2024-11-21 08:29:00 UTC",
    "finished_at": "2024-11-21 08:29:05 UTC",
    "error": null,
    "created_at": "2024-11-21 08:29:00 UTC",
    "updated_at": "2024-11-21 08:29:05 UTC",
    "active_job_id": "ced07174-fd45-466c-80f6-9c382293bbd2",
    "concurrency_key": null,
    "cron_key": null,
    "cron_at": null,
    "batch_id": "c68bab32-1232-4db3-9a81-7e6ac0111803",
    "batch_callback_id": null,
    "executions_count": 1,
    "job_class": "ExampleJob",
    "error_event": null,
    "labels": null,
    "locked_by_id": null,
    "locked_at": null
  }
}
Очередь исполнения
default
Приоритет
0
Попытки
2
{
  "job_id": "562aa5dc-ee90-44a5-93d8-18f387df8d6c",
  "locale": "en",
  "priority": null,
  "timezone": "UTC",
  "arguments": [
    "error_once"
  ],
  "job_class": "ExampleJob",
  "executions": 1,
  "queue_name": "default",
  "enqueued_at": "2024-11-21T08:29:00.258815035Z",
  "scheduled_at": "2024-11-21T08:29:03.368678410Z",
  "provider_job_id": "562aa5dc-ee90-44a5-93d8-18f387df8d6c",
  "exception_executions": {
    "[StandardError]": 1
  },
  "_good_job": {
    "id": "562aa5dc-ee90-44a5-93d8-18f387df8d6c",
    "queue_name": "default",
    "priority": 0,
    "scheduled_at": "2024-11-21 08:29:03 UTC",
    "performed_at": "2024-11-21 08:29:03 UTC",
    "finished_at": "2024-11-21 08:29:03 UTC",
    "error": null,
    "created_at": "2024-11-21 08:29:00 UTC",
    "updated_at": "2024-11-21 08:29:03 UTC",
    "active_job_id": "562aa5dc-ee90-44a5-93d8-18f387df8d6c",
    "concurrency_key": null,
    "cron_key": null,
    "cron_at": null,
    "batch_id": "c68bab32-1232-4db3-9a81-7e6ac0111803",
    "batch_callback_id": null,
    "executions_count": 2,
    "job_class": "ExampleJob",
    "error_event": null,
    "labels": null,
    "locked_by_id": null,
    "locked_at": null
  }
}