Атрибуты
{
  "id": "63ee14f7-aa0b-441d-95c5-54da8ac0e1fb",
  "created_at": "2024-11-21 08:39:00 UTC",
  "updated_at": "2024-11-21 08:39:06 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:39:00 UTC",
  "discarded_at": "2024-11-21 08:39:06 UTC",
  "finished_at": "2024-11-21 08:39:06 UTC",
  "jobs_finished_at": "2024-11-21 08:39:06 UTC",
  "properties": {
    "foo": "bar"
  }
}
Коллбеки
Задание
Очередь исполнения
Приоритет
Попытки
Очередь исполнения
default
Приоритет
0
Попытки
1
{
  "job_id": "e1eec592-94e8-40b6-8de5-49d5a753962c",
  "locale": "en",
  "priority": null,
  "timezone": "UTC",
  "arguments": [
    {
      "_aj_globalid": "gid://test-app/GoodJob::Batch/63ee14f7-aa0b-441d-95c5-54da8ac0e1fb"
    },
    {
      "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:39:06.670953052Z",
  "scheduled_at": null,
  "provider_job_id": null,
  "exception_executions": {},
  "_good_job": {
    "id": "e1eec592-94e8-40b6-8de5-49d5a753962c",
    "queue_name": "default",
    "priority": 0,
    "scheduled_at": "2024-11-21 08:39:06 UTC",
    "performed_at": "2024-11-21 08:39:06 UTC",
    "finished_at": "2024-11-21 08:39:06 UTC",
    "error": null,
    "created_at": "2024-11-21 08:39:06 UTC",
    "updated_at": "2024-11-21 08:39:06 UTC",
    "active_job_id": "e1eec592-94e8-40b6-8de5-49d5a753962c",
    "concurrency_key": null,
    "cron_key": null,
    "cron_at": null,
    "batch_id": null,
    "batch_callback_id": "63ee14f7-aa0b-441d-95c5-54da8ac0e1fb",
    "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": "10f9b6ba-4757-482e-8801-8cc875074928",
  "locale": "en",
  "priority": null,
  "timezone": "UTC",
  "arguments": [
    "dead"
  ],
  "job_class": "ExampleJob",
  "executions": 2,
  "queue_name": "default",
  "enqueued_at": "2024-11-21T08:39:03.321702060Z",
  "scheduled_at": "2024-11-21T08:39:06.572003396Z",
  "provider_job_id": "10f9b6ba-4757-482e-8801-8cc875074928",
  "exception_executions": {
    "[ExampleJob::DeadError]": 2
  },
  "_good_job": {
    "id": "10f9b6ba-4757-482e-8801-8cc875074928",
    "queue_name": "default",
    "priority": 0,
    "scheduled_at": "2024-11-21 08:39:06 UTC",
    "performed_at": "2024-11-21 08:39:06 UTC",
    "finished_at": "2024-11-21 08:39:06 UTC",
    "error": "ExampleJob::DeadError: ExampleJob::DeadError",
    "created_at": "2024-11-21 08:39:03 UTC",
    "updated_at": "2024-11-21 08:39:06 UTC",
    "active_job_id": "10f9b6ba-4757-482e-8801-8cc875074928",
    "concurrency_key": null,
    "cron_key": null,
    "cron_at": null,
    "batch_id": "63ee14f7-aa0b-441d-95c5-54da8ac0e1fb",
    "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": "3537351b-b2ff-4ea6-a2e3-aa101447a73e",
  "locale": "en",
  "priority": null,
  "timezone": "UTC",
  "arguments": [
    "error_once"
  ],
  "job_class": "ExampleJob",
  "executions": 1,
  "queue_name": "default",
  "enqueued_at": "2024-11-21T08:39:00.179415353Z",
  "scheduled_at": "2024-11-21T08:39:03.221196209Z",
  "provider_job_id": "3537351b-b2ff-4ea6-a2e3-aa101447a73e",
  "exception_executions": {
    "[StandardError]": 1
  },
  "_good_job": {
    "id": "3537351b-b2ff-4ea6-a2e3-aa101447a73e",
    "queue_name": "default",
    "priority": 0,
    "scheduled_at": "2024-11-21 08:39:03 UTC",
    "performed_at": "2024-11-21 08:39:03 UTC",
    "finished_at": "2024-11-21 08:39:03 UTC",
    "error": null,
    "created_at": "2024-11-21 08:39:00 UTC",
    "updated_at": "2024-11-21 08:39:03 UTC",
    "active_job_id": "3537351b-b2ff-4ea6-a2e3-aa101447a73e",
    "concurrency_key": null,
    "cron_key": null,
    "cron_at": null,
    "batch_id": "63ee14f7-aa0b-441d-95c5-54da8ac0e1fb",
    "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": "d55742cd-351d-46d4-aeaa-b4d5d347d40e",
  "locale": "en",
  "priority": null,
  "timezone": "UTC",
  "arguments": [
    "slow"
  ],
  "job_class": "ExampleJob",
  "executions": 0,
  "queue_name": "default",
  "enqueued_at": "2024-11-21T08:39:00.072339628Z",
  "scheduled_at": null,
  "provider_job_id": null,
  "exception_executions": {},
  "_good_job": {
    "id": "d55742cd-351d-46d4-aeaa-b4d5d347d40e",
    "queue_name": "default",
    "priority": 0,
    "scheduled_at": "2024-11-21 08:39:00 UTC",
    "performed_at": "2024-11-21 08:39:00 UTC",
    "finished_at": "2024-11-21 08:39:05 UTC",
    "error": null,
    "created_at": "2024-11-21 08:39:00 UTC",
    "updated_at": "2024-11-21 08:39:05 UTC",
    "active_job_id": "d55742cd-351d-46d4-aeaa-b4d5d347d40e",
    "concurrency_key": null,
    "cron_key": null,
    "cron_at": null,
    "batch_id": "63ee14f7-aa0b-441d-95c5-54da8ac0e1fb",
    "batch_callback_id": null,
    "executions_count": 1,
    "job_class": "ExampleJob",
    "error_event": null,
    "labels": null,
    "locked_by_id": null,
    "locked_at": null
  }
}