属性
{
  "id": "3b5568bb-4489-4a38-b21c-60b7d9554f9b",
  "created_at": "2026-04-16 16:37:00 UTC",
  "updated_at": "2026-04-16 16:55:11 UTC",
  "description": "Example batch",
  "properties": {
    "foo": "bar"
  },
  "on_finish": "ExampleJob::BatchJob::CallbackJob",
  "on_success": null,
  "on_discard": null,
  "callback_queue_name": null,
  "callback_priority": null,
  "enqueued_at": "2026-04-16 16:37:00 UTC",
  "discarded_at": "2026-04-16 16:37:06 UTC",
  "finished_at": "2026-04-16 16:55:11 UTC",
  "jobs_finished_at": "2026-04-16 16:55:11 UTC"
}
回调任务
任务
队列
优先级
标签
尝试次数
队列
default
优先级
0
标签
尝试次数
1
已成功
{
  "job_id": "bd8b1738-2db9-44d0-91f5-ddbc42aa9f49",
  "locale": "en",
  "priority": null,
  "timezone": "UTC",
  "arguments": [
    {
      "_aj_globalid": "gid://test-app/GoodJob::Batch/3b5568bb-4489-4a38-b21c-60b7d9554f9b"
    },
    {
      "event": {
        "value": "finish",
        "_aj_serialized": "ActiveJob::Serializers::SymbolSerializer"
      },
      "_aj_symbol_keys": [
        "event"
      ]
    }
  ],
  "job_class": "ExampleJob::BatchJob::CallbackJob",
  "executions": 0,
  "queue_name": "default",
  "enqueued_at": "2026-04-16T16:55:11.860681305Z",
  "scheduled_at": null,
  "provider_job_id": null,
  "exception_executions": {},
  "_good_job": {
    "id": "bd8b1738-2db9-44d0-91f5-ddbc42aa9f49",
    "queue_name": "default",
    "priority": 0,
    "scheduled_at": "2026-04-16 16:55:11 UTC",
    "performed_at": "2026-04-16 16:55:11 UTC",
    "finished_at": "2026-04-16 16:55:11 UTC",
    "error": null,
    "created_at": "2026-04-16 16:55:11 UTC",
    "updated_at": "2026-04-16 16:55:11 UTC",
    "active_job_id": "bd8b1738-2db9-44d0-91f5-ddbc42aa9f49",
    "concurrency_key": "ExampleJob::BatchJob::CallbackJob",
    "cron_key": null,
    "cron_at": null,
    "batch_id": null,
    "batch_callback_id": "3b5568bb-4489-4a38-b21c-60b7d9554f9b",
    "executions_count": 1,
    "job_class": "ExampleJob::BatchJob::CallbackJob",
    "error_event": null,
    "labels": null,
    "locked_by_id": null,
    "locked_at": null,
    "lock_type": null
  }
}
批量任务
任务
队列
优先级
标签
尝试次数
队列
default
优先级
0
标签
error_five_times
尝试次数
6
已成功
{
  "job_id": "cd23a6af-965a-4ed1-b620-1d19a7488905",
  "locale": "en",
  "priority": null,
  "timezone": "UTC",
  "arguments": [
    "error_five_times"
  ],
  "job_class": "ExampleJob",
  "executions": 5,
  "queue_name": "default",
  "enqueued_at": "2026-04-16T16:43:21.855900115Z",
  "scheduled_at": "2026-04-16T16:55:11.831268185Z",
  "provider_job_id": "cd23a6af-965a-4ed1-b620-1d19a7488905",
  "exception_executions": {
    "[StandardError]": 5
  },
  "_good_job": {
    "id": "cd23a6af-965a-4ed1-b620-1d19a7488905",
    "queue_name": "default",
    "priority": 0,
    "scheduled_at": "2026-04-16 16:55:11 UTC",
    "performed_at": "2026-04-16 16:55:11 UTC",
    "finished_at": "2026-04-16 16:55:11 UTC",
    "error": null,
    "created_at": "2026-04-16 16:43:21 UTC",
    "updated_at": "2026-04-16 16:55:11 UTC",
    "active_job_id": "cd23a6af-965a-4ed1-b620-1d19a7488905",
    "concurrency_key": "ExampleJob",
    "cron_key": null,
    "cron_at": null,
    "batch_id": "3b5568bb-4489-4a38-b21c-60b7d9554f9b",
    "batch_callback_id": null,
    "executions_count": 6,
    "job_class": "ExampleJob",
    "error_event": null,
    "labels": [
      "error_five_times"
    ],
    "locked_by_id": null,
    "locked_at": null,
    "lock_type": null
  }
}
队列
default
优先级
0
标签
dead
尝试次数
3
已丢弃
{
  "job_id": "daf74ce3-3fd0-484f-8876-3fcf7a458427",
  "locale": "en",
  "priority": null,
  "timezone": "UTC",
  "arguments": [
    "dead"
  ],
  "job_class": "ExampleJob",
  "executions": 2,
  "queue_name": "default",
  "enqueued_at": "2026-04-16T16:37:03.613329218Z",
  "scheduled_at": "2026-04-16T16:37:06.730476904Z",
  "provider_job_id": "daf74ce3-3fd0-484f-8876-3fcf7a458427",
  "exception_executions": {
    "[ExampleJob::DeadError]": 2
  },
  "_good_job": {
    "id": "daf74ce3-3fd0-484f-8876-3fcf7a458427",
    "queue_name": "default",
    "priority": 0,
    "scheduled_at": "2026-04-16 16:37:06 UTC",
    "performed_at": "2026-04-16 16:37:06 UTC",
    "finished_at": "2026-04-16 16:37:06 UTC",
    "error": "ExampleJob::DeadError: ExampleJob::DeadError",
    "created_at": "2026-04-16 16:37:03 UTC",
    "updated_at": "2026-04-16 16:37:06 UTC",
    "active_job_id": "daf74ce3-3fd0-484f-8876-3fcf7a458427",
    "concurrency_key": "ExampleJob",
    "cron_key": null,
    "cron_at": null,
    "batch_id": "3b5568bb-4489-4a38-b21c-60b7d9554f9b",
    "batch_callback_id": null,
    "executions_count": 3,
    "job_class": "ExampleJob",
    "error_event": "retry_stopped",
    "labels": [
      "dead"
    ],
    "locked_by_id": null,
    "locked_at": null,
    "lock_type": null
  }
}
队列
default
优先级
0
标签
error_once
尝试次数
2
已成功
{
  "job_id": "af81bb66-b47c-4106-8de1-dd225378cbca",
  "locale": "en",
  "priority": null,
  "timezone": "UTC",
  "arguments": [
    "error_once"
  ],
  "job_class": "ExampleJob",
  "executions": 1,
  "queue_name": "default",
  "enqueued_at": "2026-04-16T16:37:00.168781962Z",
  "scheduled_at": "2026-04-16T16:37:03.269837237Z",
  "provider_job_id": "af81bb66-b47c-4106-8de1-dd225378cbca",
  "exception_executions": {
    "[StandardError]": 1
  },
  "_good_job": {
    "id": "af81bb66-b47c-4106-8de1-dd225378cbca",
    "queue_name": "default",
    "priority": 0,
    "scheduled_at": "2026-04-16 16:37:03 UTC",
    "performed_at": "2026-04-16 16:37:03 UTC",
    "finished_at": "2026-04-16 16:37:03 UTC",
    "error": null,
    "created_at": "2026-04-16 16:37:00 UTC",
    "updated_at": "2026-04-16 16:37:03 UTC",
    "active_job_id": "af81bb66-b47c-4106-8de1-dd225378cbca",
    "concurrency_key": "ExampleJob",
    "cron_key": null,
    "cron_at": null,
    "batch_id": "3b5568bb-4489-4a38-b21c-60b7d9554f9b",
    "batch_callback_id": null,
    "executions_count": 2,
    "job_class": "ExampleJob",
    "error_event": null,
    "labels": [
      "error_once"
    ],
    "locked_by_id": null,
    "locked_at": null,
    "lock_type": null
  }
}