Атрибуты
{
  "id": "2cb55fbc-6f43-4a3e-9c12-7cfc9e8dd4f9",
  "created_at": "2024-11-21 06:32:30 UTC",
  "updated_at": "2024-11-21 06:50:28 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 06:32:30 UTC",
  "discarded_at": "2024-11-21 06:32:36 UTC",
  "finished_at": "2024-11-21 06:50:28 UTC",
  "jobs_finished_at": "2024-11-21 06:50:28 UTC",
  "properties": {
    "foo": "bar"
  }
}
Коллбеки
Задание
Очередь исполнения
Приоритет
Попытки
Очередь исполнения
default
Приоритет
0
Попытки
1
{
  "job_id": "18c00ff4-3148-42eb-9325-4e5519b054cc",
  "locale": "en",
  "priority": null,
  "timezone": "UTC",
  "arguments": [
    {
      "_aj_globalid": "gid://test-app/GoodJob::Batch/2cb55fbc-6f43-4a3e-9c12-7cfc9e8dd4f9"
    },
    {
      "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-21T06:50:28.785651760Z",
  "scheduled_at": null,
  "provider_job_id": null,
  "exception_executions": {},
  "_good_job": {
    "id": "18c00ff4-3148-42eb-9325-4e5519b054cc",
    "queue_name": "default",
    "priority": 0,
    "scheduled_at": "2024-11-21 06:50:28 UTC",
    "performed_at": "2024-11-21 06:50:28 UTC",
    "finished_at": "2024-11-21 06:50:28 UTC",
    "error": null,
    "created_at": "2024-11-21 06:50:28 UTC",
    "updated_at": "2024-11-21 06:50:28 UTC",
    "active_job_id": "18c00ff4-3148-42eb-9325-4e5519b054cc",
    "concurrency_key": null,
    "cron_key": null,
    "cron_at": null,
    "batch_id": null,
    "batch_callback_id": "2cb55fbc-6f43-4a3e-9c12-7cfc9e8dd4f9",
    "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": "b8a7633c-1d65-4bbe-b06e-779db318f77e",
  "locale": "en",
  "priority": null,
  "timezone": "UTC",
  "arguments": [
    "error_five_times"
  ],
  "job_class": "ExampleJob",
  "executions": 5,
  "queue_name": "default",
  "enqueued_at": "2024-11-21T06:39:06.939566265Z",
  "scheduled_at": "2024-11-21T06:50:28.719662896Z",
  "provider_job_id": "b8a7633c-1d65-4bbe-b06e-779db318f77e",
  "exception_executions": {
    "[StandardError]": 5
  },
  "_good_job": {
    "id": "b8a7633c-1d65-4bbe-b06e-779db318f77e",
    "queue_name": "default",
    "priority": 0,
    "scheduled_at": "2024-11-21 06:50:28 UTC",
    "performed_at": "2024-11-21 06:50:28 UTC",
    "finished_at": "2024-11-21 06:50:28 UTC",
    "error": null,
    "created_at": "2024-11-21 06:39:06 UTC",
    "updated_at": "2024-11-21 06:50:28 UTC",
    "active_job_id": "b8a7633c-1d65-4bbe-b06e-779db318f77e",
    "concurrency_key": null,
    "cron_key": null,
    "cron_at": null,
    "batch_id": "2cb55fbc-6f43-4a3e-9c12-7cfc9e8dd4f9",
    "batch_callback_id": null,
    "executions_count": 6,
    "job_class": "ExampleJob",
    "error_event": null,
    "labels": null,
    "locked_by_id": null,
    "locked_at": null
  }
}
Очередь исполнения
default
Приоритет
0
Попытки
3
{
  "job_id": "a1035afe-a081-47ed-a56b-d7c8aaaf326d",
  "locale": "en",
  "priority": null,
  "timezone": "UTC",
  "arguments": [
    "dead"
  ],
  "job_class": "ExampleJob",
  "executions": 2,
  "queue_name": "default",
  "enqueued_at": "2024-11-21T06:32:33.591609686Z",
  "scheduled_at": "2024-11-21T06:32:36.932501764Z",
  "provider_job_id": "a1035afe-a081-47ed-a56b-d7c8aaaf326d",
  "exception_executions": {
    "[ExampleJob::DeadError]": 2
  },
  "_good_job": {
    "id": "a1035afe-a081-47ed-a56b-d7c8aaaf326d",
    "queue_name": "default",
    "priority": 0,
    "scheduled_at": "2024-11-21 06:32:36 UTC",
    "performed_at": "2024-11-21 06:32:36 UTC",
    "finished_at": "2024-11-21 06:32:36 UTC",
    "error": "ExampleJob::DeadError: ExampleJob::DeadError",
    "created_at": "2024-11-21 06:32:33 UTC",
    "updated_at": "2024-11-21 06:32:36 UTC",
    "active_job_id": "a1035afe-a081-47ed-a56b-d7c8aaaf326d",
    "concurrency_key": null,
    "cron_key": null,
    "cron_at": null,
    "batch_id": "2cb55fbc-6f43-4a3e-9c12-7cfc9e8dd4f9",
    "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": "9361661c-401b-498a-9030-a945cd8b561c",
  "locale": "en",
  "priority": null,
  "timezone": "UTC",
  "arguments": [
    "success"
  ],
  "job_class": "ExampleJob",
  "executions": 0,
  "queue_name": "default",
  "enqueued_at": "2024-11-21T06:32:30.183737539Z",
  "scheduled_at": null,
  "provider_job_id": null,
  "exception_executions": {},
  "_good_job": {
    "id": "9361661c-401b-498a-9030-a945cd8b561c",
    "queue_name": "default",
    "priority": 0,
    "scheduled_at": "2024-11-21 06:32:30 UTC",
    "performed_at": "2024-11-21 06:32:30 UTC",
    "finished_at": "2024-11-21 06:32:30 UTC",
    "error": null,
    "created_at": "2024-11-21 06:32:30 UTC",
    "updated_at": "2024-11-21 06:32:30 UTC",
    "active_job_id": "9361661c-401b-498a-9030-a945cd8b561c",
    "concurrency_key": null,
    "cron_key": null,
    "cron_at": null,
    "batch_id": "2cb55fbc-6f43-4a3e-9c12-7cfc9e8dd4f9",
    "batch_callback_id": null,
    "executions_count": 1,
    "job_class": "ExampleJob",
    "error_event": null,
    "labels": null,
    "locked_by_id": null,
    "locked_at": null
  }
}