Атрибуты
{
  "id": "90e8b9fc-674a-4f48-8531-af37dea28b3e",
  "created_at": "2024-11-21 09:21:00 UTC",
  "updated_at": "2024-11-21 09:21: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 09:21:00 UTC",
  "discarded_at": "2024-11-21 09:21:06 UTC",
  "finished_at": "2024-11-21 09:21:06 UTC",
  "jobs_finished_at": "2024-11-21 09:21:06 UTC",
  "properties": {
    "foo": "bar"
  }
}
Коллбеки
Задание
Очередь исполнения
Приоритет
Попытки
Очередь исполнения
default
Приоритет
0
Попытки
1
{
  "job_id": "111f46cb-50b8-4531-b52c-2b38eb9f2ee9",
  "locale": "en",
  "priority": null,
  "timezone": "UTC",
  "arguments": [
    {
      "_aj_globalid": "gid://test-app/GoodJob::Batch/90e8b9fc-674a-4f48-8531-af37dea28b3e"
    },
    {
      "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-21T09:21:06.947649870Z",
  "scheduled_at": null,
  "provider_job_id": null,
  "exception_executions": {},
  "_good_job": {
    "id": "111f46cb-50b8-4531-b52c-2b38eb9f2ee9",
    "queue_name": "default",
    "priority": 0,
    "scheduled_at": "2024-11-21 09:21:06 UTC",
    "performed_at": "2024-11-21 09:21:06 UTC",
    "finished_at": "2024-11-21 09:21:06 UTC",
    "error": null,
    "created_at": "2024-11-21 09:21:06 UTC",
    "updated_at": "2024-11-21 09:21:06 UTC",
    "active_job_id": "111f46cb-50b8-4531-b52c-2b38eb9f2ee9",
    "concurrency_key": null,
    "cron_key": null,
    "cron_at": null,
    "batch_id": null,
    "batch_callback_id": "90e8b9fc-674a-4f48-8531-af37dea28b3e",
    "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": "1fd93e1b-30b6-44a7-8909-368b936c68a0",
  "locale": "en",
  "priority": null,
  "timezone": "UTC",
  "arguments": [
    "dead"
  ],
  "job_class": "ExampleJob",
  "executions": 2,
  "queue_name": "default",
  "enqueued_at": "2024-11-21T09:21:03.604239749Z",
  "scheduled_at": "2024-11-21T09:21:06.911891407Z",
  "provider_job_id": "1fd93e1b-30b6-44a7-8909-368b936c68a0",
  "exception_executions": {
    "[ExampleJob::DeadError]": 2
  },
  "_good_job": {
    "id": "1fd93e1b-30b6-44a7-8909-368b936c68a0",
    "queue_name": "default",
    "priority": 0,
    "scheduled_at": "2024-11-21 09:21:06 UTC",
    "performed_at": "2024-11-21 09:21:06 UTC",
    "finished_at": "2024-11-21 09:21:06 UTC",
    "error": "ExampleJob::DeadError: ExampleJob::DeadError",
    "created_at": "2024-11-21 09:21:03 UTC",
    "updated_at": "2024-11-21 09:21:06 UTC",
    "active_job_id": "1fd93e1b-30b6-44a7-8909-368b936c68a0",
    "concurrency_key": null,
    "cron_key": null,
    "cron_at": null,
    "batch_id": "90e8b9fc-674a-4f48-8531-af37dea28b3e",
    "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": "45abb495-b152-4982-a66e-e6ff8390cc53",
  "locale": "en",
  "priority": null,
  "timezone": "UTC",
  "arguments": [
    "error_once"
  ],
  "job_class": "ExampleJob",
  "executions": 1,
  "queue_name": "default",
  "enqueued_at": "2024-11-21T09:21:00.395418696Z",
  "scheduled_at": "2024-11-21T09:21:03.542186790Z",
  "provider_job_id": "45abb495-b152-4982-a66e-e6ff8390cc53",
  "exception_executions": {
    "[StandardError]": 1
  },
  "_good_job": {
    "id": "45abb495-b152-4982-a66e-e6ff8390cc53",
    "queue_name": "default",
    "priority": 0,
    "scheduled_at": "2024-11-21 09:21:03 UTC",
    "performed_at": "2024-11-21 09:21:03 UTC",
    "finished_at": "2024-11-21 09:21:03 UTC",
    "error": null,
    "created_at": "2024-11-21 09:21:00 UTC",
    "updated_at": "2024-11-21 09:21:03 UTC",
    "active_job_id": "45abb495-b152-4982-a66e-e6ff8390cc53",
    "concurrency_key": null,
    "cron_key": null,
    "cron_at": null,
    "batch_id": "90e8b9fc-674a-4f48-8531-af37dea28b3e",
    "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": "a1fcd8de-1e09-48d6-94b9-57927aa37018",
  "locale": "en",
  "priority": null,
  "timezone": "UTC",
  "arguments": [
    "success"
  ],
  "job_class": "ExampleJob",
  "executions": 0,
  "queue_name": "default",
  "enqueued_at": "2024-11-21T09:21:00.117033144Z",
  "scheduled_at": null,
  "provider_job_id": null,
  "exception_executions": {},
  "_good_job": {
    "id": "a1fcd8de-1e09-48d6-94b9-57927aa37018",
    "queue_name": "default",
    "priority": 0,
    "scheduled_at": "2024-11-21 09:21:00 UTC",
    "performed_at": "2024-11-21 09:21:00 UTC",
    "finished_at": "2024-11-21 09:21:00 UTC",
    "error": null,
    "created_at": "2024-11-21 09:21:00 UTC",
    "updated_at": "2024-11-21 09:21:00 UTC",
    "active_job_id": "a1fcd8de-1e09-48d6-94b9-57927aa37018",
    "concurrency_key": null,
    "cron_key": null,
    "cron_at": null,
    "batch_id": "90e8b9fc-674a-4f48-8531-af37dea28b3e",
    "batch_callback_id": null,
    "executions_count": 1,
    "job_class": "ExampleJob",
    "error_event": null,
    "labels": null,
    "locked_by_id": null,
    "locked_at": null
  }
}