Атрибуты
{
  "id": "e2a52460-b7dc-49b6-ab6b-4d3ae2042206",
  "created_at": "2024-11-21 08:33:30 UTC",
  "updated_at": "2024-11-21 08:51:44 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:33:30 UTC",
  "discarded_at": null,
  "finished_at": "2024-11-21 08:51:44 UTC",
  "jobs_finished_at": "2024-11-21 08:51:44 UTC",
  "properties": {
    "foo": "bar"
  }
}
Коллбеки
Задание
Очередь исполнения
Приоритет
Попытки
Очередь исполнения
default
Приоритет
0
Попытки
1
{
  "job_id": "6bed677d-1824-4f0c-b8af-d55e39f7b596",
  "locale": "en",
  "priority": null,
  "timezone": "UTC",
  "arguments": [
    {
      "_aj_globalid": "gid://test-app/GoodJob::Batch/e2a52460-b7dc-49b6-ab6b-4d3ae2042206"
    },
    {
      "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:51:44.891232432Z",
  "scheduled_at": null,
  "provider_job_id": null,
  "exception_executions": {},
  "_good_job": {
    "id": "6bed677d-1824-4f0c-b8af-d55e39f7b596",
    "queue_name": "default",
    "priority": 0,
    "scheduled_at": "2024-11-21 08:51:44 UTC",
    "performed_at": "2024-11-21 08:51:44 UTC",
    "finished_at": "2024-11-21 08:51:44 UTC",
    "error": null,
    "created_at": "2024-11-21 08:51:44 UTC",
    "updated_at": "2024-11-21 08:51:44 UTC",
    "active_job_id": "6bed677d-1824-4f0c-b8af-d55e39f7b596",
    "concurrency_key": null,
    "cron_key": null,
    "cron_at": null,
    "batch_id": null,
    "batch_callback_id": "e2a52460-b7dc-49b6-ab6b-4d3ae2042206",
    "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": "f27ff766-53e5-48cd-8176-6c8d7de94775",
  "locale": "en",
  "priority": null,
  "timezone": "UTC",
  "arguments": [
    "error_five_times"
  ],
  "job_class": "ExampleJob",
  "executions": 5,
  "queue_name": "default",
  "enqueued_at": "2024-11-21T08:39:47.739418241Z",
  "scheduled_at": "2024-11-21T08:51:44.842355290Z",
  "provider_job_id": "f27ff766-53e5-48cd-8176-6c8d7de94775",
  "exception_executions": {
    "[StandardError]": 5
  },
  "_good_job": {
    "id": "f27ff766-53e5-48cd-8176-6c8d7de94775",
    "queue_name": "default",
    "priority": 0,
    "scheduled_at": "2024-11-21 08:51:44 UTC",
    "performed_at": "2024-11-21 08:51:44 UTC",
    "finished_at": "2024-11-21 08:51:44 UTC",
    "error": null,
    "created_at": "2024-11-21 08:39:47 UTC",
    "updated_at": "2024-11-21 08:51:44 UTC",
    "active_job_id": "f27ff766-53e5-48cd-8176-6c8d7de94775",
    "concurrency_key": null,
    "cron_key": null,
    "cron_at": null,
    "batch_id": "e2a52460-b7dc-49b6-ab6b-4d3ae2042206",
    "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": "08f4efd0-2d39-4393-8f93-63ec12433fa5",
  "locale": "en",
  "priority": null,
  "timezone": "UTC",
  "arguments": [
    "success"
  ],
  "job_class": "ExampleJob",
  "executions": 0,
  "queue_name": "default",
  "enqueued_at": "2024-11-21T08:33:30.040304190Z",
  "scheduled_at": null,
  "provider_job_id": null,
  "exception_executions": {},
  "_good_job": {
    "id": "08f4efd0-2d39-4393-8f93-63ec12433fa5",
    "queue_name": "default",
    "priority": 0,
    "scheduled_at": "2024-11-21 08:33:30 UTC",
    "performed_at": "2024-11-21 08:33:30 UTC",
    "finished_at": "2024-11-21 08:33:30 UTC",
    "error": null,
    "created_at": "2024-11-21 08:33:30 UTC",
    "updated_at": "2024-11-21 08:33:30 UTC",
    "active_job_id": "08f4efd0-2d39-4393-8f93-63ec12433fa5",
    "concurrency_key": null,
    "cron_key": null,
    "cron_at": null,
    "batch_id": "e2a52460-b7dc-49b6-ab6b-4d3ae2042206",
    "batch_callback_id": null,
    "executions_count": 1,
    "job_class": "ExampleJob",
    "error_event": null,
    "labels": null,
    "locked_by_id": null,
    "locked_at": null
  }
}
Очередь исполнения
default
Приоритет
0
Попытки
1
{
  "job_id": "1bc7d839-45ea-423d-8328-3b02ad1c060b",
  "locale": "en",
  "priority": null,
  "timezone": "UTC",
  "arguments": [
    "success"
  ],
  "job_class": "ExampleJob",
  "executions": 0,
  "queue_name": "default",
  "enqueued_at": "2024-11-21T08:33:30.040442123Z",
  "scheduled_at": null,
  "provider_job_id": null,
  "exception_executions": {},
  "_good_job": {
    "id": "1bc7d839-45ea-423d-8328-3b02ad1c060b",
    "queue_name": "default",
    "priority": 0,
    "scheduled_at": "2024-11-21 08:33:30 UTC",
    "performed_at": "2024-11-21 08:33:30 UTC",
    "finished_at": "2024-11-21 08:33:30 UTC",
    "error": null,
    "created_at": "2024-11-21 08:33:30 UTC",
    "updated_at": "2024-11-21 08:33:30 UTC",
    "active_job_id": "1bc7d839-45ea-423d-8328-3b02ad1c060b",
    "concurrency_key": null,
    "cron_key": null,
    "cron_at": null,
    "batch_id": "e2a52460-b7dc-49b6-ab6b-4d3ae2042206",
    "batch_callback_id": null,
    "executions_count": 1,
    "job_class": "ExampleJob",
    "error_event": null,
    "labels": null,
    "locked_by_id": null,
    "locked_at": null
  }
}