Атрибуты
{
  "id": "b1f6dccc-2d74-4cd7-83d6-77175ec4a3e0",
  "created_at": "2024-11-21 10:14:30 UTC",
  "updated_at": "2024-11-21 10:33:03 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 10:14:30 UTC",
  "discarded_at": null,
  "finished_at": "2024-11-21 10:33:03 UTC",
  "jobs_finished_at": "2024-11-21 10:33:03 UTC",
  "properties": {
    "foo": "bar"
  }
}
Коллбеки
Задание
Очередь исполнения
Приоритет
Попытки
Очередь исполнения
default
Приоритет
0
Попытки
1
{
  "job_id": "f5e08428-e7c2-4e71-81d1-9358ba548335",
  "locale": "en",
  "priority": null,
  "timezone": "UTC",
  "arguments": [
    {
      "_aj_globalid": "gid://test-app/GoodJob::Batch/b1f6dccc-2d74-4cd7-83d6-77175ec4a3e0"
    },
    {
      "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-21T10:33:03.172039903Z",
  "scheduled_at": null,
  "provider_job_id": null,
  "exception_executions": {},
  "_good_job": {
    "id": "f5e08428-e7c2-4e71-81d1-9358ba548335",
    "queue_name": "default",
    "priority": 0,
    "scheduled_at": "2024-11-21 10:33:03 UTC",
    "performed_at": "2024-11-21 10:33:03 UTC",
    "finished_at": "2024-11-21 10:33:03 UTC",
    "error": null,
    "created_at": "2024-11-21 10:33:03 UTC",
    "updated_at": "2024-11-21 10:33:03 UTC",
    "active_job_id": "f5e08428-e7c2-4e71-81d1-9358ba548335",
    "concurrency_key": null,
    "cron_key": null,
    "cron_at": null,
    "batch_id": null,
    "batch_callback_id": "b1f6dccc-2d74-4cd7-83d6-77175ec4a3e0",
    "executions_count": 1,
    "job_class": "ExampleJob::BatchJob::CallbackJob",
    "error_event": null,
    "labels": null,
    "locked_by_id": null,
    "locked_at": null
  }
}
Группы заданий
Задание
Очередь исполнения
Приоритет
Попытки
Очередь исполнения
default
Приоритет
0
Попытки
1
{
  "job_id": "01ba2d3a-3258-47d1-994c-0cf9436e0a5e",
  "locale": "en",
  "priority": null,
  "timezone": "UTC",
  "arguments": [
    "slow"
  ],
  "job_class": "ExampleJob",
  "executions": 0,
  "queue_name": "default",
  "enqueued_at": "2024-11-21T10:14:30.177127575Z",
  "scheduled_at": null,
  "provider_job_id": null,
  "exception_executions": {},
  "_good_job": {
    "id": "01ba2d3a-3258-47d1-994c-0cf9436e0a5e",
    "queue_name": "default",
    "priority": 0,
    "scheduled_at": "2024-11-21 10:14:30 UTC",
    "performed_at": "2024-11-21 10:14:30 UTC",
    "finished_at": "2024-11-21 10:14:35 UTC",
    "error": null,
    "created_at": "2024-11-21 10:14:30 UTC",
    "updated_at": "2024-11-21 10:14:35 UTC",
    "active_job_id": "01ba2d3a-3258-47d1-994c-0cf9436e0a5e",
    "concurrency_key": null,
    "cron_key": null,
    "cron_at": null,
    "batch_id": "b1f6dccc-2d74-4cd7-83d6-77175ec4a3e0",
    "batch_callback_id": null,
    "executions_count": 1,
    "job_class": "ExampleJob",
    "error_event": null,
    "labels": null,
    "locked_by_id": null,
    "locked_at": null
  }
}
Очередь исполнения
default
Приоритет
0
Попытки
6
{
  "job_id": "8ca59f66-5a6a-4367-b23b-5144ce44f052",
  "locale": "en",
  "priority": null,
  "timezone": "UTC",
  "arguments": [
    "error_five_times"
  ],
  "job_class": "ExampleJob",
  "executions": 5,
  "queue_name": "default",
  "enqueued_at": "2024-11-21T10:21:19.190923665Z",
  "scheduled_at": "2024-11-21T10:33:03.134806312Z",
  "provider_job_id": "8ca59f66-5a6a-4367-b23b-5144ce44f052",
  "exception_executions": {
    "[StandardError]": 5
  },
  "_good_job": {
    "id": "8ca59f66-5a6a-4367-b23b-5144ce44f052",
    "queue_name": "default",
    "priority": 0,
    "scheduled_at": "2024-11-21 10:33:03 UTC",
    "performed_at": "2024-11-21 10:33:03 UTC",
    "finished_at": "2024-11-21 10:33:03 UTC",
    "error": null,
    "created_at": "2024-11-21 10:21:19 UTC",
    "updated_at": "2024-11-21 10:33:03 UTC",
    "active_job_id": "8ca59f66-5a6a-4367-b23b-5144ce44f052",
    "concurrency_key": null,
    "cron_key": null,
    "cron_at": null,
    "batch_id": "b1f6dccc-2d74-4cd7-83d6-77175ec4a3e0",
    "batch_callback_id": null,
    "executions_count": 6,
    "job_class": "ExampleJob",
    "error_event": null,
    "labels": null,
    "locked_by_id": null,
    "locked_at": null
  }
}
Очередь исполнения
default
Приоритет
0
Попытки
6
{
  "job_id": "cdefa9de-2079-4d0d-9684-021534ac4f45",
  "locale": "en",
  "priority": null,
  "timezone": "UTC",
  "arguments": [
    "error_five_times"
  ],
  "job_class": "ExampleJob",
  "executions": 5,
  "queue_name": "default",
  "enqueued_at": "2024-11-21T10:20:38.917475518Z",
  "scheduled_at": "2024-11-21T10:31:30.549257968Z",
  "provider_job_id": "cdefa9de-2079-4d0d-9684-021534ac4f45",
  "exception_executions": {
    "[StandardError]": 5
  },
  "_good_job": {
    "id": "cdefa9de-2079-4d0d-9684-021534ac4f45",
    "queue_name": "default",
    "priority": 0,
    "scheduled_at": "2024-11-21 10:31:30 UTC",
    "performed_at": "2024-11-21 10:31:30 UTC",
    "finished_at": "2024-11-21 10:31:30 UTC",
    "error": null,
    "created_at": "2024-11-21 10:20:38 UTC",
    "updated_at": "2024-11-21 10:31:30 UTC",
    "active_job_id": "cdefa9de-2079-4d0d-9684-021534ac4f45",
    "concurrency_key": null,
    "cron_key": null,
    "cron_at": null,
    "batch_id": "b1f6dccc-2d74-4cd7-83d6-77175ec4a3e0",
    "batch_callback_id": null,
    "executions_count": 6,
    "job_class": "ExampleJob",
    "error_event": null,
    "labels": null,
    "locked_by_id": null,
    "locked_at": null
  }
}