Атрибуты
{
  "id": "94591780-4569-42f9-97e3-42ced993dc64",
  "created_at": "2024-11-21 08:42:30 UTC",
  "updated_at": "2024-11-21 08:42:36 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:42:30 UTC",
  "discarded_at": "2024-11-21 08:42:36 UTC",
  "finished_at": "2024-11-21 08:42:36 UTC",
  "jobs_finished_at": "2024-11-21 08:42:36 UTC",
  "properties": {
    "foo": "bar"
  }
}
Коллбеки
Задание
Очередь исполнения
Приоритет
Попытки
Очередь исполнения
default
Приоритет
0
Попытки
1
{
  "job_id": "38b60b2a-556b-4e1d-9761-f0b4514d0bfa",
  "locale": "en",
  "priority": null,
  "timezone": "UTC",
  "arguments": [
    {
      "_aj_globalid": "gid://test-app/GoodJob::Batch/94591780-4569-42f9-97e3-42ced993dc64"
    },
    {
      "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:42:36.693476061Z",
  "scheduled_at": null,
  "provider_job_id": null,
  "exception_executions": {},
  "_good_job": {
    "id": "38b60b2a-556b-4e1d-9761-f0b4514d0bfa",
    "queue_name": "default",
    "priority": 0,
    "scheduled_at": "2024-11-21 08:42:36 UTC",
    "performed_at": "2024-11-21 08:42:36 UTC",
    "finished_at": "2024-11-21 08:42:36 UTC",
    "error": null,
    "created_at": "2024-11-21 08:42:36 UTC",
    "updated_at": "2024-11-21 08:42:36 UTC",
    "active_job_id": "38b60b2a-556b-4e1d-9761-f0b4514d0bfa",
    "concurrency_key": null,
    "cron_key": null,
    "cron_at": null,
    "batch_id": null,
    "batch_callback_id": "94591780-4569-42f9-97e3-42ced993dc64",
    "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": "0491966b-caee-4fcb-9519-a7fdad288bc4",
  "locale": "en",
  "priority": null,
  "timezone": "UTC",
  "arguments": [
    "dead"
  ],
  "job_class": "ExampleJob",
  "executions": 2,
  "queue_name": "default",
  "enqueued_at": "2024-11-21T08:42:33.462409422Z",
  "scheduled_at": "2024-11-21T08:42:36.664325859Z",
  "provider_job_id": "0491966b-caee-4fcb-9519-a7fdad288bc4",
  "exception_executions": {
    "[ExampleJob::DeadError]": 2
  },
  "_good_job": {
    "id": "0491966b-caee-4fcb-9519-a7fdad288bc4",
    "queue_name": "default",
    "priority": 0,
    "scheduled_at": "2024-11-21 08:42:36 UTC",
    "performed_at": "2024-11-21 08:42:36 UTC",
    "finished_at": "2024-11-21 08:42:36 UTC",
    "error": "ExampleJob::DeadError: ExampleJob::DeadError",
    "created_at": "2024-11-21 08:42:33 UTC",
    "updated_at": "2024-11-21 08:42:36 UTC",
    "active_job_id": "0491966b-caee-4fcb-9519-a7fdad288bc4",
    "concurrency_key": null,
    "cron_key": null,
    "cron_at": null,
    "batch_id": "94591780-4569-42f9-97e3-42ced993dc64",
    "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
Попытки
3
{
  "job_id": "9cf5fb7c-8145-44bf-8d2c-c9e10ec904da",
  "locale": "en",
  "priority": null,
  "timezone": "UTC",
  "arguments": [
    "dead"
  ],
  "job_class": "ExampleJob",
  "executions": 2,
  "queue_name": "default",
  "enqueued_at": "2024-11-21T08:42:33.333609099Z",
  "scheduled_at": "2024-11-21T08:42:36.480281686Z",
  "provider_job_id": "9cf5fb7c-8145-44bf-8d2c-c9e10ec904da",
  "exception_executions": {
    "[ExampleJob::DeadError]": 2
  },
  "_good_job": {
    "id": "9cf5fb7c-8145-44bf-8d2c-c9e10ec904da",
    "queue_name": "default",
    "priority": 0,
    "scheduled_at": "2024-11-21 08:42:36 UTC",
    "performed_at": "2024-11-21 08:42:36 UTC",
    "finished_at": "2024-11-21 08:42:36 UTC",
    "error": "ExampleJob::DeadError: ExampleJob::DeadError",
    "created_at": "2024-11-21 08:42:33 UTC",
    "updated_at": "2024-11-21 08:42:36 UTC",
    "active_job_id": "9cf5fb7c-8145-44bf-8d2c-c9e10ec904da",
    "concurrency_key": null,
    "cron_key": null,
    "cron_at": null,
    "batch_id": "94591780-4569-42f9-97e3-42ced993dc64",
    "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": "5c01f48b-9766-4667-8bc1-bf45d769d4ab",
  "locale": "en",
  "priority": null,
  "timezone": "UTC",
  "arguments": [
    "slow"
  ],
  "job_class": "ExampleJob",
  "executions": 0,
  "queue_name": "default",
  "enqueued_at": "2024-11-21T08:42:30.094050620Z",
  "scheduled_at": null,
  "provider_job_id": null,
  "exception_executions": {},
  "_good_job": {
    "id": "5c01f48b-9766-4667-8bc1-bf45d769d4ab",
    "queue_name": "default",
    "priority": 0,
    "scheduled_at": "2024-11-21 08:42:30 UTC",
    "performed_at": "2024-11-21 08:42:30 UTC",
    "finished_at": "2024-11-21 08:42:35 UTC",
    "error": null,
    "created_at": "2024-11-21 08:42:30 UTC",
    "updated_at": "2024-11-21 08:42:35 UTC",
    "active_job_id": "5c01f48b-9766-4667-8bc1-bf45d769d4ab",
    "concurrency_key": null,
    "cron_key": null,
    "cron_at": null,
    "batch_id": "94591780-4569-42f9-97e3-42ced993dc64",
    "batch_callback_id": null,
    "executions_count": 1,
    "job_class": "ExampleJob",
    "error_event": null,
    "labels": null,
    "locked_by_id": null,
    "locked_at": null
  }
}