Атрибуты
{
  "id": "885e3c4c-a06b-4962-ba06-be27ac6ad9e7",
  "created_at": "2024-11-21 08:32:00 UTC",
  "updated_at": "2024-11-21 08:50:15 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:32:00 UTC",
  "discarded_at": null,
  "finished_at": "2024-11-21 08:50:15 UTC",
  "jobs_finished_at": "2024-11-21 08:50:15 UTC",
  "properties": {
    "foo": "bar"
  }
}
Коллбеки
Задание
Очередь исполнения
Приоритет
Попытки
Очередь исполнения
default
Приоритет
0
Попытки
1
{
  "job_id": "e6eeb590-44dd-47b0-867c-1b53ee842c4f",
  "locale": "en",
  "priority": null,
  "timezone": "UTC",
  "arguments": [
    {
      "_aj_globalid": "gid://test-app/GoodJob::Batch/885e3c4c-a06b-4962-ba06-be27ac6ad9e7"
    },
    {
      "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:50:15.064112509Z",
  "scheduled_at": null,
  "provider_job_id": null,
  "exception_executions": {},
  "_good_job": {
    "id": "e6eeb590-44dd-47b0-867c-1b53ee842c4f",
    "queue_name": "default",
    "priority": 0,
    "scheduled_at": "2024-11-21 08:50:15 UTC",
    "performed_at": "2024-11-21 08:50:15 UTC",
    "finished_at": "2024-11-21 08:50:15 UTC",
    "error": null,
    "created_at": "2024-11-21 08:50:15 UTC",
    "updated_at": "2024-11-21 08:50:15 UTC",
    "active_job_id": "e6eeb590-44dd-47b0-867c-1b53ee842c4f",
    "concurrency_key": null,
    "cron_key": null,
    "cron_at": null,
    "batch_id": null,
    "batch_callback_id": "885e3c4c-a06b-4962-ba06-be27ac6ad9e7",
    "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": "77f40344-1463-4b95-a8d7-3118996cc29c",
  "locale": "en",
  "priority": null,
  "timezone": "UTC",
  "arguments": [
    "error_five_times"
  ],
  "job_class": "ExampleJob",
  "executions": 5,
  "queue_name": "default",
  "enqueued_at": "2024-11-21T08:38:38.165600086Z",
  "scheduled_at": "2024-11-21T08:50:14.625670655Z",
  "provider_job_id": "77f40344-1463-4b95-a8d7-3118996cc29c",
  "exception_executions": {
    "[StandardError]": 5
  },
  "_good_job": {
    "id": "77f40344-1463-4b95-a8d7-3118996cc29c",
    "queue_name": "default",
    "priority": 0,
    "scheduled_at": "2024-11-21 08:50:14 UTC",
    "performed_at": "2024-11-21 08:50:15 UTC",
    "finished_at": "2024-11-21 08:50:15 UTC",
    "error": null,
    "created_at": "2024-11-21 08:38:38 UTC",
    "updated_at": "2024-11-21 08:50:15 UTC",
    "active_job_id": "77f40344-1463-4b95-a8d7-3118996cc29c",
    "concurrency_key": null,
    "cron_key": null,
    "cron_at": null,
    "batch_id": "885e3c4c-a06b-4962-ba06-be27ac6ad9e7",
    "batch_callback_id": null,
    "executions_count": 6,
    "job_class": "ExampleJob",
    "error_event": null,
    "labels": null,
    "locked_by_id": null,
    "locked_at": null
  }
}
Очередь исполнения
default
Приоритет
0
Попытки
1
{
  "job_id": "423e98c2-3a9f-4842-8832-6048444c36c9",
  "locale": "en",
  "priority": null,
  "timezone": "UTC",
  "arguments": [
    "slow"
  ],
  "job_class": "ExampleJob",
  "executions": 0,
  "queue_name": "default",
  "enqueued_at": "2024-11-21T08:32:00.521979268Z",
  "scheduled_at": null,
  "provider_job_id": null,
  "exception_executions": {},
  "_good_job": {
    "id": "423e98c2-3a9f-4842-8832-6048444c36c9",
    "queue_name": "default",
    "priority": 0,
    "scheduled_at": "2024-11-21 08:32:00 UTC",
    "performed_at": "2024-11-21 08:32:00 UTC",
    "finished_at": "2024-11-21 08:32:05 UTC",
    "error": null,
    "created_at": "2024-11-21 08:32:00 UTC",
    "updated_at": "2024-11-21 08:32:05 UTC",
    "active_job_id": "423e98c2-3a9f-4842-8832-6048444c36c9",
    "concurrency_key": null,
    "cron_key": null,
    "cron_at": null,
    "batch_id": "885e3c4c-a06b-4962-ba06-be27ac6ad9e7",
    "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": "de229b92-20d2-4248-b560-aa23f8658511",
  "locale": "en",
  "priority": null,
  "timezone": "UTC",
  "arguments": [
    "error_once"
  ],
  "job_class": "ExampleJob",
  "executions": 1,
  "queue_name": "default",
  "enqueued_at": "2024-11-21T08:32:00.758639055Z",
  "scheduled_at": "2024-11-21T08:32:03.880602069Z",
  "provider_job_id": "de229b92-20d2-4248-b560-aa23f8658511",
  "exception_executions": {
    "[StandardError]": 1
  },
  "_good_job": {
    "id": "de229b92-20d2-4248-b560-aa23f8658511",
    "queue_name": "default",
    "priority": 0,
    "scheduled_at": "2024-11-21 08:32:03 UTC",
    "performed_at": "2024-11-21 08:32:03 UTC",
    "finished_at": "2024-11-21 08:32:03 UTC",
    "error": null,
    "created_at": "2024-11-21 08:32:00 UTC",
    "updated_at": "2024-11-21 08:32:03 UTC",
    "active_job_id": "de229b92-20d2-4248-b560-aa23f8658511",
    "concurrency_key": null,
    "cron_key": null,
    "cron_at": null,
    "batch_id": "885e3c4c-a06b-4962-ba06-be27ac6ad9e7",
    "batch_callback_id": null,
    "executions_count": 2,
    "job_class": "ExampleJob",
    "error_event": null,
    "labels": null,
    "locked_by_id": null,
    "locked_at": null
  }
}