8мс у черзі
9мс час виконання
Успішно виконано
{
"job_id": "30ee118d-0cba-4200-892a-72406f980ec7",
"locale": "en",
"priority": 0,
"timezone": "UTC",
"arguments": [
"error_five_times"
],
"job_class": "ExampleJob",
"executions": 5,
"queue_name": "default",
"enqueued_at": "2024-10-22T14:05:08.870050372Z",
"scheduled_at": "2024-10-22T14:17:06.324008592Z",
"provider_job_id": "30ee118d-0cba-4200-892a-72406f980ec7",
"exception_executions": {
"[StandardError]": 5
},
"_good_job_execution": {
"id": "6a25048d-b4c0-49c8-9afc-01d22419e0e6",
"created_at": "2024-10-22 14:17:06 UTC",
"updated_at": "2024-10-22 14:17:06 UTC",
"active_job_id": "30ee118d-0cba-4200-892a-72406f980ec7",
"job_class": "ExampleJob",
"queue_name": "default",
"scheduled_at": "2024-10-22 14:17:06 UTC",
"finished_at": "2024-10-22 14:17:06 UTC",
"error": null,
"error_event": null,
"error_backtrace": null,
"process_id": "93b1cbc0-3e82-4966-b808-5cffc52944dc",
"duration": "0.009855"
}
}
9мс у черзі
20мс час виконання
Відхилено
Помилка:
ExampleJob::ExpectedError: Executed 5 times.
-
-
app/jobs/example_job.rb:39:in `perform'
/app/demo/app/jobs/example_job.rb:39:in `perform'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/execution.rb:68:in `block in _perform_job'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:121:in `block in run_callbacks'
/app/vendor/bundle/ruby/3.3.0/gems/i18n-1.14.6/lib/i18n.rb:353:in `with_locale'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/translation.rb:9:in `block (2 levels) in <module:Translation>'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `instance_exec'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `block in run_callbacks'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/core_ext/time/zones.rb:65:in `use_zone'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/timezones.rb:9:in `block (2 levels) in <module:Timezones>'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `instance_exec'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `block in run_callbacks'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:141:in `run_callbacks'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/execution.rb:67:in `_perform_job'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/instrumentation.rb:32:in `_perform_job'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/execution.rb:51:in `perform_now'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/instrumentation.rb:26:in `block in perform_now'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/railties/job_runtime.rb:13:in `block in instrument'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/instrumentation.rb:40:in `block in instrument'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/notifications.rb:206:in `block in instrument'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/notifications/instrumenter.rb:58:in `instrument'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/notifications.rb:206:in `instrument'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/instrumentation.rb:39:in `instrument'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/railties/job_runtime.rb:11:in `instrument'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/instrumentation.rb:26:in `perform_now'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/logging.rb:18:in `block in perform_now'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/tagged_logging.rb:139:in `block in tagged'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/tagged_logging.rb:39:in `tagged'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/tagged_logging.rb:139:in `tagged'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/broadcast_logger.rb:241:in `method_missing'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/logging.rb:25:in `tag_logger'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/logging.rb:18:in `perform_now'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/execution.rb:29:in `block in execute'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:121:in `block in run_callbacks'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/railtie.rb:67:in `block (4 levels) in <class:Railtie>'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/reloader.rb:77:in `block in wrap'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/execution_wrapper.rb:88:in `wrap'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/reloader.rb:74:in `wrap'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/railtie.rb:66:in `block (3 levels) in <class:Railtie>'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `instance_exec'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `block in run_callbacks'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:141:in `run_callbacks'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/execution.rb:27:in `execute'
/app/app/models/good_job/job.rb:600:in `block (3 levels) in perform'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/notifications.rb:206:in `block in instrument'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/notifications/instrumenter.rb:58:in `instrument'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/notifications.rb:206:in `instrument'
/app/app/models/good_job/job.rb:599:in `block (2 levels) in perform'
/app/lib/good_job/current_thread.rb:113:in `within'
/app/app/models/good_job/job.rb:557:in `block in perform'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:121:in `block in run_callbacks'
/app/app/models/good_job/batch.rb:80:in `within_thread'
/app/app/models/good_job/job.rb:742:in `reset_batch_values'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `block in run_callbacks'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:141:in `run_callbacks'
/app/app/models/good_job/job.rb:551:in `perform'
/app/app/models/good_job/job.rb:299:in `block in perform_with_advisory_lock'
/app/app/models/concerns/good_job/advisory_lockable.rb:172:in `block in with_advisory_lock'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation.rb:939:in `_scoping'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation.rb:467:in `scoping'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/scoping/default.rb:51:in `unscoped'
/app/app/models/concerns/good_job/advisory_lockable.rb:172:in `with_advisory_lock'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation/delegation.rb:79:in `block in with_advisory_lock'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation.rb:939:in `_scoping'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation.rb:467:in `scoping'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation/delegation.rb:79:in `with_advisory_lock'
/app/app/models/good_job/job.rb:293:in `perform_with_advisory_lock'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation/delegation.rb:79:in `block in perform_with_advisory_lock'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation.rb:939:in `_scoping'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation.rb:467:in `scoping'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation/delegation.rb:79:in `perform_with_advisory_lock'
/app/lib/good_job/job_performer.rb:35:in `block in next'
/app/lib/good_job/capsule_tracker.rb:94:in `register'
/app/lib/good_job/job_performer.rb:34:in `next'
/app/lib/good_job/scheduler.rb:276:in `block (2 levels) in create_task'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/reloader.rb:77:in `block in wrap'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/execution_wrapper.rb:92:in `wrap'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/reloader.rb:74:in `wrap'
/app/lib/good_job/scheduler.rb:275:in `block in create_task'
/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/safe_task_executor.rb:24:in `block in execute'
/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb:48:in `block in synchronize'
/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb:48:in `synchronize'
/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb:48:in `synchronize'
/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/safe_task_executor.rb:22:in `execute'
/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/ivar.rb:170:in `safe_execute'
/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/scheduled_task.rb:298:in `process_task'
/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/timer_set.rb:166:in `block (2 levels) in process_tasks'
/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:359:in `run_task'
/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:350:in `block (3 levels) in create_worker'
<internal:kernel>:187:in `loop'
/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:341:in `block (2 levels) in create_worker'
/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:340:in `catch'
/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:340:in `block in create_worker'
{
"job_id": "30ee118d-0cba-4200-892a-72406f980ec7",
"locale": "en",
"priority": 0,
"timezone": "UTC",
"arguments": [
"error_five_times"
],
"job_class": "ExampleJob",
"executions": 4,
"queue_name": "default",
"enqueued_at": "2024-10-22T14:00:33.585075401Z",
"scheduled_at": "2024-10-22T14:05:08.847562890Z",
"provider_job_id": "30ee118d-0cba-4200-892a-72406f980ec7",
"exception_executions": {
"[StandardError]": 4
},
"_good_job_execution": {
"id": "e955b95b-2a5a-4e55-a2e9-4a74131f539b",
"created_at": "2024-10-22 14:05:08 UTC",
"updated_at": "2024-10-22 14:05:08 UTC",
"active_job_id": "30ee118d-0cba-4200-892a-72406f980ec7",
"job_class": "ExampleJob",
"queue_name": "default",
"scheduled_at": "2024-10-22 14:05:08 UTC",
"finished_at": "2024-10-22 14:05:08 UTC",
"error": "ExampleJob::ExpectedError: Executed 5 times.",
"error_event": "retried",
"error_backtrace": [
"/app/demo/app/jobs/example_job.rb:39:in `perform'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/execution.rb:68:in `block in _perform_job'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:121:in `block in run_callbacks'",
"/app/vendor/bundle/ruby/3.3.0/gems/i18n-1.14.6/lib/i18n.rb:353:in `with_locale'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/translation.rb:9:in `block (2 levels) in <module:Translation>'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `instance_exec'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `block in run_callbacks'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/core_ext/time/zones.rb:65:in `use_zone'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/timezones.rb:9:in `block (2 levels) in <module:Timezones>'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `instance_exec'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `block in run_callbacks'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:141:in `run_callbacks'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/execution.rb:67:in `_perform_job'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/instrumentation.rb:32:in `_perform_job'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/execution.rb:51:in `perform_now'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/instrumentation.rb:26:in `block in perform_now'",
"/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/railties/job_runtime.rb:13:in `block in instrument'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/instrumentation.rb:40:in `block in instrument'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/notifications.rb:206:in `block in instrument'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/notifications/instrumenter.rb:58:in `instrument'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/notifications.rb:206:in `instrument'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/instrumentation.rb:39:in `instrument'",
"/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/railties/job_runtime.rb:11:in `instrument'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/instrumentation.rb:26:in `perform_now'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/logging.rb:18:in `block in perform_now'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/tagged_logging.rb:139:in `block in tagged'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/tagged_logging.rb:39:in `tagged'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/tagged_logging.rb:139:in `tagged'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/broadcast_logger.rb:241:in `method_missing'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/logging.rb:25:in `tag_logger'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/logging.rb:18:in `perform_now'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/execution.rb:29:in `block in execute'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:121:in `block in run_callbacks'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/railtie.rb:67:in `block (4 levels) in <class:Railtie>'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/reloader.rb:77:in `block in wrap'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/execution_wrapper.rb:88:in `wrap'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/reloader.rb:74:in `wrap'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/railtie.rb:66:in `block (3 levels) in <class:Railtie>'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `instance_exec'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `block in run_callbacks'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:141:in `run_callbacks'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/execution.rb:27:in `execute'",
"/app/app/models/good_job/job.rb:600:in `block (3 levels) in perform'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/notifications.rb:206:in `block in instrument'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/notifications/instrumenter.rb:58:in `instrument'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/notifications.rb:206:in `instrument'",
"/app/app/models/good_job/job.rb:599:in `block (2 levels) in perform'",
"/app/lib/good_job/current_thread.rb:113:in `within'",
"/app/app/models/good_job/job.rb:557:in `block in perform'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:121:in `block in run_callbacks'",
"/app/app/models/good_job/batch.rb:80:in `within_thread'",
"/app/app/models/good_job/job.rb:742:in `reset_batch_values'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `block in run_callbacks'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:141:in `run_callbacks'",
"/app/app/models/good_job/job.rb:551:in `perform'",
"/app/app/models/good_job/job.rb:299:in `block in perform_with_advisory_lock'",
"/app/app/models/concerns/good_job/advisory_lockable.rb:172:in `block in with_advisory_lock'",
"/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation.rb:939:in `_scoping'",
"/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation.rb:467:in `scoping'",
"/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/scoping/default.rb:51:in `unscoped'",
"/app/app/models/concerns/good_job/advisory_lockable.rb:172:in `with_advisory_lock'",
"/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation/delegation.rb:79:in `block in with_advisory_lock'",
"/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation.rb:939:in `_scoping'",
"/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation.rb:467:in `scoping'",
"/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation/delegation.rb:79:in `with_advisory_lock'",
"/app/app/models/good_job/job.rb:293:in `perform_with_advisory_lock'",
"/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation/delegation.rb:79:in `block in perform_with_advisory_lock'",
"/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation.rb:939:in `_scoping'",
"/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation.rb:467:in `scoping'",
"/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation/delegation.rb:79:in `perform_with_advisory_lock'",
"/app/lib/good_job/job_performer.rb:35:in `block in next'",
"/app/lib/good_job/capsule_tracker.rb:94:in `register'",
"/app/lib/good_job/job_performer.rb:34:in `next'",
"/app/lib/good_job/scheduler.rb:276:in `block (2 levels) in create_task'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/reloader.rb:77:in `block in wrap'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/execution_wrapper.rb:92:in `wrap'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/reloader.rb:74:in `wrap'",
"/app/lib/good_job/scheduler.rb:275:in `block in create_task'",
"/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/safe_task_executor.rb:24:in `block in execute'",
"/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb:48:in `block in synchronize'",
"/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb:48:in `synchronize'",
"/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb:48:in `synchronize'",
"/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/safe_task_executor.rb:22:in `execute'",
"/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/ivar.rb:170:in `safe_execute'",
"/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/scheduled_task.rb:298:in `process_task'",
"/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/timer_set.rb:166:in `block (2 levels) in process_tasks'",
"/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:359:in `run_task'",
"/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:350:in `block (3 levels) in create_worker'",
"<internal:kernel>:187:in `loop'",
"/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:341:in `block (2 levels) in create_worker'",
"/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:340:in `catch'",
"/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:340:in `block in create_worker'"
],
"process_id": "4be80d76-10b2-4667-a09a-88925a35fbea",
"duration": "0.020981"
}
}
6мс у черзі
25мс час виконання
Відхилено
Помилка:
ExampleJob::ExpectedError: Executed 4 times.
-
-
app/jobs/example_job.rb:39:in `perform'
/app/demo/app/jobs/example_job.rb:39:in `perform'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/execution.rb:68:in `block in _perform_job'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:121:in `block in run_callbacks'
/app/vendor/bundle/ruby/3.3.0/gems/i18n-1.14.6/lib/i18n.rb:353:in `with_locale'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/translation.rb:9:in `block (2 levels) in <module:Translation>'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `instance_exec'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `block in run_callbacks'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/core_ext/time/zones.rb:65:in `use_zone'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/timezones.rb:9:in `block (2 levels) in <module:Timezones>'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `instance_exec'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `block in run_callbacks'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:141:in `run_callbacks'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/execution.rb:67:in `_perform_job'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/instrumentation.rb:32:in `_perform_job'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/execution.rb:51:in `perform_now'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/instrumentation.rb:26:in `block in perform_now'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/railties/job_runtime.rb:13:in `block in instrument'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/instrumentation.rb:40:in `block in instrument'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/notifications.rb:206:in `block in instrument'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/notifications/instrumenter.rb:58:in `instrument'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/notifications.rb:206:in `instrument'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/instrumentation.rb:39:in `instrument'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/railties/job_runtime.rb:11:in `instrument'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/instrumentation.rb:26:in `perform_now'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/logging.rb:18:in `block in perform_now'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/tagged_logging.rb:139:in `block in tagged'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/tagged_logging.rb:39:in `tagged'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/tagged_logging.rb:139:in `tagged'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/broadcast_logger.rb:241:in `method_missing'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/logging.rb:25:in `tag_logger'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/logging.rb:18:in `perform_now'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/execution.rb:29:in `block in execute'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:121:in `block in run_callbacks'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/railtie.rb:67:in `block (4 levels) in <class:Railtie>'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/reloader.rb:77:in `block in wrap'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/execution_wrapper.rb:88:in `wrap'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/reloader.rb:74:in `wrap'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/railtie.rb:66:in `block (3 levels) in <class:Railtie>'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `instance_exec'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `block in run_callbacks'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:141:in `run_callbacks'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/execution.rb:27:in `execute'
/app/app/models/good_job/job.rb:600:in `block (3 levels) in perform'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/notifications.rb:206:in `block in instrument'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/notifications/instrumenter.rb:58:in `instrument'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/notifications.rb:206:in `instrument'
/app/app/models/good_job/job.rb:599:in `block (2 levels) in perform'
/app/lib/good_job/current_thread.rb:113:in `within'
/app/app/models/good_job/job.rb:557:in `block in perform'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:121:in `block in run_callbacks'
/app/app/models/good_job/batch.rb:80:in `within_thread'
/app/app/models/good_job/job.rb:742:in `reset_batch_values'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `block in run_callbacks'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:141:in `run_callbacks'
/app/app/models/good_job/job.rb:551:in `perform'
/app/app/models/good_job/job.rb:299:in `block in perform_with_advisory_lock'
/app/app/models/concerns/good_job/advisory_lockable.rb:172:in `block in with_advisory_lock'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation.rb:939:in `_scoping'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation.rb:467:in `scoping'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/scoping/default.rb:51:in `unscoped'
/app/app/models/concerns/good_job/advisory_lockable.rb:172:in `with_advisory_lock'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation/delegation.rb:79:in `block in with_advisory_lock'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation.rb:939:in `_scoping'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation.rb:467:in `scoping'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation/delegation.rb:79:in `with_advisory_lock'
/app/app/models/good_job/job.rb:293:in `perform_with_advisory_lock'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation/delegation.rb:79:in `block in perform_with_advisory_lock'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation.rb:939:in `_scoping'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation.rb:467:in `scoping'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation/delegation.rb:79:in `perform_with_advisory_lock'
/app/lib/good_job/job_performer.rb:35:in `block in next'
/app/lib/good_job/capsule_tracker.rb:94:in `register'
/app/lib/good_job/job_performer.rb:34:in `next'
/app/lib/good_job/scheduler.rb:276:in `block (2 levels) in create_task'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/reloader.rb:77:in `block in wrap'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/execution_wrapper.rb:92:in `wrap'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/reloader.rb:74:in `wrap'
/app/lib/good_job/scheduler.rb:275:in `block in create_task'
/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/safe_task_executor.rb:24:in `block in execute'
/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb:48:in `block in synchronize'
/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb:48:in `synchronize'
/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb:48:in `synchronize'
/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/safe_task_executor.rb:22:in `execute'
/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/ivar.rb:170:in `safe_execute'
/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/scheduled_task.rb:298:in `process_task'
/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/timer_set.rb:166:in `block (2 levels) in process_tasks'
/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:359:in `run_task'
/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:350:in `block (3 levels) in create_worker'
<internal:kernel>:187:in `loop'
/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:341:in `block (2 levels) in create_worker'
/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:340:in `catch'
/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:340:in `block in create_worker'
{
"job_id": "30ee118d-0cba-4200-892a-72406f980ec7",
"locale": "en",
"priority": 0,
"timezone": "UTC",
"arguments": [
"error_five_times"
],
"job_class": "ExampleJob",
"executions": 3,
"queue_name": "default",
"enqueued_at": "2024-10-22T13:59:03.718838343Z",
"scheduled_at": "2024-10-22T14:00:33.562574722Z",
"provider_job_id": "30ee118d-0cba-4200-892a-72406f980ec7",
"exception_executions": {
"[StandardError]": 3
},
"_good_job_execution": {
"id": "76391529-55b4-4780-a0cf-00bbcd69c2d5",
"created_at": "2024-10-22 14:00:33 UTC",
"updated_at": "2024-10-22 14:00:33 UTC",
"active_job_id": "30ee118d-0cba-4200-892a-72406f980ec7",
"job_class": "ExampleJob",
"queue_name": "default",
"scheduled_at": "2024-10-22 14:00:33 UTC",
"finished_at": "2024-10-22 14:00:33 UTC",
"error": "ExampleJob::ExpectedError: Executed 4 times.",
"error_event": "retried",
"error_backtrace": [
"/app/demo/app/jobs/example_job.rb:39:in `perform'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/execution.rb:68:in `block in _perform_job'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:121:in `block in run_callbacks'",
"/app/vendor/bundle/ruby/3.3.0/gems/i18n-1.14.6/lib/i18n.rb:353:in `with_locale'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/translation.rb:9:in `block (2 levels) in <module:Translation>'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `instance_exec'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `block in run_callbacks'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/core_ext/time/zones.rb:65:in `use_zone'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/timezones.rb:9:in `block (2 levels) in <module:Timezones>'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `instance_exec'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `block in run_callbacks'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:141:in `run_callbacks'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/execution.rb:67:in `_perform_job'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/instrumentation.rb:32:in `_perform_job'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/execution.rb:51:in `perform_now'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/instrumentation.rb:26:in `block in perform_now'",
"/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/railties/job_runtime.rb:13:in `block in instrument'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/instrumentation.rb:40:in `block in instrument'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/notifications.rb:206:in `block in instrument'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/notifications/instrumenter.rb:58:in `instrument'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/notifications.rb:206:in `instrument'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/instrumentation.rb:39:in `instrument'",
"/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/railties/job_runtime.rb:11:in `instrument'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/instrumentation.rb:26:in `perform_now'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/logging.rb:18:in `block in perform_now'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/tagged_logging.rb:139:in `block in tagged'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/tagged_logging.rb:39:in `tagged'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/tagged_logging.rb:139:in `tagged'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/broadcast_logger.rb:241:in `method_missing'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/logging.rb:25:in `tag_logger'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/logging.rb:18:in `perform_now'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/execution.rb:29:in `block in execute'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:121:in `block in run_callbacks'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/railtie.rb:67:in `block (4 levels) in <class:Railtie>'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/reloader.rb:77:in `block in wrap'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/execution_wrapper.rb:88:in `wrap'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/reloader.rb:74:in `wrap'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/railtie.rb:66:in `block (3 levels) in <class:Railtie>'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `instance_exec'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `block in run_callbacks'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:141:in `run_callbacks'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/execution.rb:27:in `execute'",
"/app/app/models/good_job/job.rb:600:in `block (3 levels) in perform'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/notifications.rb:206:in `block in instrument'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/notifications/instrumenter.rb:58:in `instrument'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/notifications.rb:206:in `instrument'",
"/app/app/models/good_job/job.rb:599:in `block (2 levels) in perform'",
"/app/lib/good_job/current_thread.rb:113:in `within'",
"/app/app/models/good_job/job.rb:557:in `block in perform'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:121:in `block in run_callbacks'",
"/app/app/models/good_job/batch.rb:80:in `within_thread'",
"/app/app/models/good_job/job.rb:742:in `reset_batch_values'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `block in run_callbacks'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:141:in `run_callbacks'",
"/app/app/models/good_job/job.rb:551:in `perform'",
"/app/app/models/good_job/job.rb:299:in `block in perform_with_advisory_lock'",
"/app/app/models/concerns/good_job/advisory_lockable.rb:172:in `block in with_advisory_lock'",
"/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation.rb:939:in `_scoping'",
"/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation.rb:467:in `scoping'",
"/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/scoping/default.rb:51:in `unscoped'",
"/app/app/models/concerns/good_job/advisory_lockable.rb:172:in `with_advisory_lock'",
"/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation/delegation.rb:79:in `block in with_advisory_lock'",
"/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation.rb:939:in `_scoping'",
"/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation.rb:467:in `scoping'",
"/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation/delegation.rb:79:in `with_advisory_lock'",
"/app/app/models/good_job/job.rb:293:in `perform_with_advisory_lock'",
"/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation/delegation.rb:79:in `block in perform_with_advisory_lock'",
"/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation.rb:939:in `_scoping'",
"/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation.rb:467:in `scoping'",
"/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation/delegation.rb:79:in `perform_with_advisory_lock'",
"/app/lib/good_job/job_performer.rb:35:in `block in next'",
"/app/lib/good_job/capsule_tracker.rb:94:in `register'",
"/app/lib/good_job/job_performer.rb:34:in `next'",
"/app/lib/good_job/scheduler.rb:276:in `block (2 levels) in create_task'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/reloader.rb:77:in `block in wrap'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/execution_wrapper.rb:92:in `wrap'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/reloader.rb:74:in `wrap'",
"/app/lib/good_job/scheduler.rb:275:in `block in create_task'",
"/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/safe_task_executor.rb:24:in `block in execute'",
"/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb:48:in `block in synchronize'",
"/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb:48:in `synchronize'",
"/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb:48:in `synchronize'",
"/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/safe_task_executor.rb:22:in `execute'",
"/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/ivar.rb:170:in `safe_execute'",
"/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/scheduled_task.rb:298:in `process_task'",
"/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/timer_set.rb:166:in `block (2 levels) in process_tasks'",
"/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:359:in `run_task'",
"/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:350:in `block (3 levels) in create_worker'",
"<internal:kernel>:187:in `loop'",
"/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:341:in `block (2 levels) in create_worker'",
"/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:340:in `catch'",
"/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:340:in `block in create_worker'"
],
"process_id": "4be80d76-10b2-4667-a09a-88925a35fbea",
"duration": "0.025553"
}
}
15мс у черзі
36мс час виконання
Відхилено
Помилка:
ExampleJob::ExpectedError: Executed 3 times.
-
-
app/jobs/example_job.rb:39:in `perform'
/app/demo/app/jobs/example_job.rb:39:in `perform'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/execution.rb:68:in `block in _perform_job'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:121:in `block in run_callbacks'
/app/vendor/bundle/ruby/3.3.0/gems/i18n-1.14.6/lib/i18n.rb:353:in `with_locale'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/translation.rb:9:in `block (2 levels) in <module:Translation>'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `instance_exec'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `block in run_callbacks'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/core_ext/time/zones.rb:65:in `use_zone'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/timezones.rb:9:in `block (2 levels) in <module:Timezones>'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `instance_exec'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `block in run_callbacks'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:141:in `run_callbacks'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/execution.rb:67:in `_perform_job'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/instrumentation.rb:32:in `_perform_job'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/execution.rb:51:in `perform_now'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/instrumentation.rb:26:in `block in perform_now'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/railties/job_runtime.rb:13:in `block in instrument'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/instrumentation.rb:40:in `block in instrument'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/notifications.rb:206:in `block in instrument'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/notifications/instrumenter.rb:58:in `instrument'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/notifications.rb:206:in `instrument'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/instrumentation.rb:39:in `instrument'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/railties/job_runtime.rb:11:in `instrument'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/instrumentation.rb:26:in `perform_now'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/logging.rb:18:in `block in perform_now'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/tagged_logging.rb:139:in `block in tagged'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/tagged_logging.rb:39:in `tagged'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/tagged_logging.rb:139:in `tagged'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/broadcast_logger.rb:241:in `method_missing'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/logging.rb:25:in `tag_logger'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/logging.rb:18:in `perform_now'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/execution.rb:29:in `block in execute'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:121:in `block in run_callbacks'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/railtie.rb:67:in `block (4 levels) in <class:Railtie>'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/reloader.rb:77:in `block in wrap'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/execution_wrapper.rb:88:in `wrap'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/reloader.rb:74:in `wrap'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/railtie.rb:66:in `block (3 levels) in <class:Railtie>'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `instance_exec'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `block in run_callbacks'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:141:in `run_callbacks'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/execution.rb:27:in `execute'
/app/app/models/good_job/job.rb:600:in `block (3 levels) in perform'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/notifications.rb:206:in `block in instrument'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/notifications/instrumenter.rb:58:in `instrument'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/notifications.rb:206:in `instrument'
/app/app/models/good_job/job.rb:599:in `block (2 levels) in perform'
/app/lib/good_job/current_thread.rb:113:in `within'
/app/app/models/good_job/job.rb:557:in `block in perform'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:121:in `block in run_callbacks'
/app/app/models/good_job/batch.rb:80:in `within_thread'
/app/app/models/good_job/job.rb:742:in `reset_batch_values'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `block in run_callbacks'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:141:in `run_callbacks'
/app/app/models/good_job/job.rb:551:in `perform'
/app/app/models/good_job/job.rb:299:in `block in perform_with_advisory_lock'
/app/app/models/concerns/good_job/advisory_lockable.rb:172:in `block in with_advisory_lock'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation.rb:939:in `_scoping'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation.rb:467:in `scoping'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/scoping/default.rb:51:in `unscoped'
/app/app/models/concerns/good_job/advisory_lockable.rb:172:in `with_advisory_lock'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation/delegation.rb:79:in `block in with_advisory_lock'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation.rb:939:in `_scoping'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation.rb:467:in `scoping'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation/delegation.rb:79:in `with_advisory_lock'
/app/app/models/good_job/job.rb:293:in `perform_with_advisory_lock'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation/delegation.rb:79:in `block in perform_with_advisory_lock'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation.rb:939:in `_scoping'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation.rb:467:in `scoping'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation/delegation.rb:79:in `perform_with_advisory_lock'
/app/lib/good_job/job_performer.rb:35:in `block in next'
/app/lib/good_job/capsule_tracker.rb:94:in `register'
/app/lib/good_job/job_performer.rb:34:in `next'
/app/lib/good_job/scheduler.rb:276:in `block (2 levels) in create_task'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/reloader.rb:77:in `block in wrap'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/execution_wrapper.rb:92:in `wrap'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/reloader.rb:74:in `wrap'
/app/lib/good_job/scheduler.rb:275:in `block in create_task'
/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/safe_task_executor.rb:24:in `block in execute'
/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb:48:in `block in synchronize'
/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb:48:in `synchronize'
/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb:48:in `synchronize'
/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/safe_task_executor.rb:22:in `execute'
/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/ivar.rb:170:in `safe_execute'
/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/scheduled_task.rb:298:in `process_task'
/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/timer_set.rb:166:in `block (2 levels) in process_tasks'
/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:359:in `run_task'
/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:350:in `block (3 levels) in create_worker'
<internal:kernel>:187:in `loop'
/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:341:in `block (2 levels) in create_worker'
/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:340:in `catch'
/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:340:in `block in create_worker'
{
"job_id": "30ee118d-0cba-4200-892a-72406f980ec7",
"locale": "en",
"priority": 0,
"timezone": "UTC",
"arguments": [
"error_five_times"
],
"job_class": "ExampleJob",
"executions": 2,
"queue_name": "default",
"enqueued_at": "2024-10-22T13:58:44.141730181Z",
"scheduled_at": "2024-10-22T13:59:03.691533933Z",
"provider_job_id": "30ee118d-0cba-4200-892a-72406f980ec7",
"exception_executions": {
"[StandardError]": 2
},
"_good_job_execution": {
"id": "9939e3e0-4a32-4d8f-8674-7f6e2e4a7f45",
"created_at": "2024-10-22 13:59:03 UTC",
"updated_at": "2024-10-22 13:59:03 UTC",
"active_job_id": "30ee118d-0cba-4200-892a-72406f980ec7",
"job_class": "ExampleJob",
"queue_name": "default",
"scheduled_at": "2024-10-22 13:59:03 UTC",
"finished_at": "2024-10-22 13:59:03 UTC",
"error": "ExampleJob::ExpectedError: Executed 3 times.",
"error_event": "retried",
"error_backtrace": [
"/app/demo/app/jobs/example_job.rb:39:in `perform'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/execution.rb:68:in `block in _perform_job'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:121:in `block in run_callbacks'",
"/app/vendor/bundle/ruby/3.3.0/gems/i18n-1.14.6/lib/i18n.rb:353:in `with_locale'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/translation.rb:9:in `block (2 levels) in <module:Translation>'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `instance_exec'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `block in run_callbacks'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/core_ext/time/zones.rb:65:in `use_zone'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/timezones.rb:9:in `block (2 levels) in <module:Timezones>'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `instance_exec'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `block in run_callbacks'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:141:in `run_callbacks'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/execution.rb:67:in `_perform_job'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/instrumentation.rb:32:in `_perform_job'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/execution.rb:51:in `perform_now'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/instrumentation.rb:26:in `block in perform_now'",
"/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/railties/job_runtime.rb:13:in `block in instrument'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/instrumentation.rb:40:in `block in instrument'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/notifications.rb:206:in `block in instrument'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/notifications/instrumenter.rb:58:in `instrument'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/notifications.rb:206:in `instrument'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/instrumentation.rb:39:in `instrument'",
"/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/railties/job_runtime.rb:11:in `instrument'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/instrumentation.rb:26:in `perform_now'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/logging.rb:18:in `block in perform_now'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/tagged_logging.rb:139:in `block in tagged'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/tagged_logging.rb:39:in `tagged'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/tagged_logging.rb:139:in `tagged'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/broadcast_logger.rb:241:in `method_missing'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/logging.rb:25:in `tag_logger'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/logging.rb:18:in `perform_now'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/execution.rb:29:in `block in execute'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:121:in `block in run_callbacks'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/railtie.rb:67:in `block (4 levels) in <class:Railtie>'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/reloader.rb:77:in `block in wrap'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/execution_wrapper.rb:88:in `wrap'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/reloader.rb:74:in `wrap'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/railtie.rb:66:in `block (3 levels) in <class:Railtie>'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `instance_exec'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `block in run_callbacks'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:141:in `run_callbacks'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/execution.rb:27:in `execute'",
"/app/app/models/good_job/job.rb:600:in `block (3 levels) in perform'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/notifications.rb:206:in `block in instrument'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/notifications/instrumenter.rb:58:in `instrument'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/notifications.rb:206:in `instrument'",
"/app/app/models/good_job/job.rb:599:in `block (2 levels) in perform'",
"/app/lib/good_job/current_thread.rb:113:in `within'",
"/app/app/models/good_job/job.rb:557:in `block in perform'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:121:in `block in run_callbacks'",
"/app/app/models/good_job/batch.rb:80:in `within_thread'",
"/app/app/models/good_job/job.rb:742:in `reset_batch_values'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `block in run_callbacks'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:141:in `run_callbacks'",
"/app/app/models/good_job/job.rb:551:in `perform'",
"/app/app/models/good_job/job.rb:299:in `block in perform_with_advisory_lock'",
"/app/app/models/concerns/good_job/advisory_lockable.rb:172:in `block in with_advisory_lock'",
"/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation.rb:939:in `_scoping'",
"/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation.rb:467:in `scoping'",
"/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/scoping/default.rb:51:in `unscoped'",
"/app/app/models/concerns/good_job/advisory_lockable.rb:172:in `with_advisory_lock'",
"/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation/delegation.rb:79:in `block in with_advisory_lock'",
"/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation.rb:939:in `_scoping'",
"/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation.rb:467:in `scoping'",
"/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation/delegation.rb:79:in `with_advisory_lock'",
"/app/app/models/good_job/job.rb:293:in `perform_with_advisory_lock'",
"/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation/delegation.rb:79:in `block in perform_with_advisory_lock'",
"/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation.rb:939:in `_scoping'",
"/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation.rb:467:in `scoping'",
"/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation/delegation.rb:79:in `perform_with_advisory_lock'",
"/app/lib/good_job/job_performer.rb:35:in `block in next'",
"/app/lib/good_job/capsule_tracker.rb:94:in `register'",
"/app/lib/good_job/job_performer.rb:34:in `next'",
"/app/lib/good_job/scheduler.rb:276:in `block (2 levels) in create_task'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/reloader.rb:77:in `block in wrap'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/execution_wrapper.rb:92:in `wrap'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/reloader.rb:74:in `wrap'",
"/app/lib/good_job/scheduler.rb:275:in `block in create_task'",
"/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/safe_task_executor.rb:24:in `block in execute'",
"/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb:48:in `block in synchronize'",
"/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb:48:in `synchronize'",
"/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb:48:in `synchronize'",
"/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/safe_task_executor.rb:22:in `execute'",
"/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/ivar.rb:170:in `safe_execute'",
"/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/scheduled_task.rb:298:in `process_task'",
"/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/timer_set.rb:166:in `block (2 levels) in process_tasks'",
"/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:359:in `run_task'",
"/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:350:in `block (3 levels) in create_worker'",
"<internal:kernel>:187:in `loop'",
"/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:341:in `block (2 levels) in create_worker'",
"/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:340:in `catch'",
"/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:340:in `block in create_worker'"
],
"process_id": "93b1cbc0-3e82-4966-b808-5cffc52944dc",
"duration": "0.036318"
}
}
1.0с у черзі
16мс час виконання
Відхилено
Помилка:
ExampleJob::ExpectedError: Executed 2 times.
-
-
app/jobs/example_job.rb:39:in `perform'
/app/demo/app/jobs/example_job.rb:39:in `perform'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/execution.rb:68:in `block in _perform_job'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:121:in `block in run_callbacks'
/app/vendor/bundle/ruby/3.3.0/gems/i18n-1.14.6/lib/i18n.rb:353:in `with_locale'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/translation.rb:9:in `block (2 levels) in <module:Translation>'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `instance_exec'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `block in run_callbacks'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/core_ext/time/zones.rb:65:in `use_zone'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/timezones.rb:9:in `block (2 levels) in <module:Timezones>'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `instance_exec'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `block in run_callbacks'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:141:in `run_callbacks'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/execution.rb:67:in `_perform_job'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/instrumentation.rb:32:in `_perform_job'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/execution.rb:51:in `perform_now'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/instrumentation.rb:26:in `block in perform_now'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/railties/job_runtime.rb:13:in `block in instrument'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/instrumentation.rb:40:in `block in instrument'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/notifications.rb:206:in `block in instrument'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/notifications/instrumenter.rb:58:in `instrument'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/notifications.rb:206:in `instrument'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/instrumentation.rb:39:in `instrument'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/railties/job_runtime.rb:11:in `instrument'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/instrumentation.rb:26:in `perform_now'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/logging.rb:18:in `block in perform_now'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/tagged_logging.rb:139:in `block in tagged'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/tagged_logging.rb:39:in `tagged'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/tagged_logging.rb:139:in `tagged'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/broadcast_logger.rb:241:in `method_missing'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/logging.rb:25:in `tag_logger'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/logging.rb:18:in `perform_now'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/execution.rb:29:in `block in execute'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:121:in `block in run_callbacks'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/railtie.rb:67:in `block (4 levels) in <class:Railtie>'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/reloader.rb:77:in `block in wrap'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/execution_wrapper.rb:88:in `wrap'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/reloader.rb:74:in `wrap'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/railtie.rb:66:in `block (3 levels) in <class:Railtie>'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `instance_exec'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `block in run_callbacks'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:141:in `run_callbacks'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/execution.rb:27:in `execute'
/app/app/models/good_job/job.rb:600:in `block (3 levels) in perform'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/notifications.rb:206:in `block in instrument'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/notifications/instrumenter.rb:58:in `instrument'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/notifications.rb:206:in `instrument'
/app/app/models/good_job/job.rb:599:in `block (2 levels) in perform'
/app/lib/good_job/current_thread.rb:113:in `within'
/app/app/models/good_job/job.rb:557:in `block in perform'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:121:in `block in run_callbacks'
/app/app/models/good_job/batch.rb:80:in `within_thread'
/app/app/models/good_job/job.rb:742:in `reset_batch_values'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `block in run_callbacks'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:141:in `run_callbacks'
/app/app/models/good_job/job.rb:551:in `perform'
/app/app/models/good_job/job.rb:299:in `block in perform_with_advisory_lock'
/app/app/models/concerns/good_job/advisory_lockable.rb:172:in `block in with_advisory_lock'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation.rb:939:in `_scoping'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation.rb:467:in `scoping'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/scoping/default.rb:51:in `unscoped'
/app/app/models/concerns/good_job/advisory_lockable.rb:172:in `with_advisory_lock'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation/delegation.rb:79:in `block in with_advisory_lock'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation.rb:939:in `_scoping'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation.rb:467:in `scoping'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation/delegation.rb:79:in `with_advisory_lock'
/app/app/models/good_job/job.rb:293:in `perform_with_advisory_lock'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation/delegation.rb:79:in `block in perform_with_advisory_lock'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation.rb:939:in `_scoping'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation.rb:467:in `scoping'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation/delegation.rb:79:in `perform_with_advisory_lock'
/app/lib/good_job/job_performer.rb:35:in `block in next'
/app/lib/good_job/capsule_tracker.rb:94:in `register'
/app/lib/good_job/job_performer.rb:34:in `next'
/app/lib/good_job/scheduler.rb:276:in `block (2 levels) in create_task'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/reloader.rb:77:in `block in wrap'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/execution_wrapper.rb:92:in `wrap'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/reloader.rb:74:in `wrap'
/app/lib/good_job/scheduler.rb:275:in `block in create_task'
/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/safe_task_executor.rb:24:in `block in execute'
/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb:48:in `block in synchronize'
/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb:48:in `synchronize'
/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb:48:in `synchronize'
/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/safe_task_executor.rb:22:in `execute'
/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/ivar.rb:170:in `safe_execute'
/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/scheduled_task.rb:298:in `process_task'
/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/timer_set.rb:166:in `block (2 levels) in process_tasks'
/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:359:in `run_task'
/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:350:in `block (3 levels) in create_worker'
<internal:kernel>:187:in `loop'
/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:341:in `block (2 levels) in create_worker'
/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:340:in `catch'
/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:340:in `block in create_worker'
{
"job_id": "30ee118d-0cba-4200-892a-72406f980ec7",
"locale": "en",
"priority": 0,
"timezone": "UTC",
"arguments": [
"error_five_times"
],
"job_class": "ExampleJob",
"executions": 1,
"queue_name": "default",
"enqueued_at": "2024-10-22T13:58:40.023155150Z",
"scheduled_at": "2024-10-22T13:58:43.094300442Z",
"provider_job_id": "30ee118d-0cba-4200-892a-72406f980ec7",
"exception_executions": {
"[StandardError]": 1
},
"_good_job_execution": {
"id": "2d81c82e-6b7e-4ec3-a5b4-e016e6672181",
"created_at": "2024-10-22 13:58:44 UTC",
"updated_at": "2024-10-22 13:58:44 UTC",
"active_job_id": "30ee118d-0cba-4200-892a-72406f980ec7",
"job_class": "ExampleJob",
"queue_name": "default",
"scheduled_at": "2024-10-22 13:58:43 UTC",
"finished_at": "2024-10-22 13:58:44 UTC",
"error": "ExampleJob::ExpectedError: Executed 2 times.",
"error_event": "retried",
"error_backtrace": [
"/app/demo/app/jobs/example_job.rb:39:in `perform'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/execution.rb:68:in `block in _perform_job'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:121:in `block in run_callbacks'",
"/app/vendor/bundle/ruby/3.3.0/gems/i18n-1.14.6/lib/i18n.rb:353:in `with_locale'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/translation.rb:9:in `block (2 levels) in <module:Translation>'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `instance_exec'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `block in run_callbacks'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/core_ext/time/zones.rb:65:in `use_zone'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/timezones.rb:9:in `block (2 levels) in <module:Timezones>'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `instance_exec'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `block in run_callbacks'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:141:in `run_callbacks'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/execution.rb:67:in `_perform_job'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/instrumentation.rb:32:in `_perform_job'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/execution.rb:51:in `perform_now'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/instrumentation.rb:26:in `block in perform_now'",
"/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/railties/job_runtime.rb:13:in `block in instrument'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/instrumentation.rb:40:in `block in instrument'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/notifications.rb:206:in `block in instrument'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/notifications/instrumenter.rb:58:in `instrument'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/notifications.rb:206:in `instrument'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/instrumentation.rb:39:in `instrument'",
"/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/railties/job_runtime.rb:11:in `instrument'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/instrumentation.rb:26:in `perform_now'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/logging.rb:18:in `block in perform_now'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/tagged_logging.rb:139:in `block in tagged'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/tagged_logging.rb:39:in `tagged'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/tagged_logging.rb:139:in `tagged'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/broadcast_logger.rb:241:in `method_missing'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/logging.rb:25:in `tag_logger'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/logging.rb:18:in `perform_now'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/execution.rb:29:in `block in execute'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:121:in `block in run_callbacks'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/railtie.rb:67:in `block (4 levels) in <class:Railtie>'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/reloader.rb:77:in `block in wrap'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/execution_wrapper.rb:88:in `wrap'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/reloader.rb:74:in `wrap'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/railtie.rb:66:in `block (3 levels) in <class:Railtie>'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `instance_exec'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `block in run_callbacks'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:141:in `run_callbacks'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/execution.rb:27:in `execute'",
"/app/app/models/good_job/job.rb:600:in `block (3 levels) in perform'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/notifications.rb:206:in `block in instrument'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/notifications/instrumenter.rb:58:in `instrument'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/notifications.rb:206:in `instrument'",
"/app/app/models/good_job/job.rb:599:in `block (2 levels) in perform'",
"/app/lib/good_job/current_thread.rb:113:in `within'",
"/app/app/models/good_job/job.rb:557:in `block in perform'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:121:in `block in run_callbacks'",
"/app/app/models/good_job/batch.rb:80:in `within_thread'",
"/app/app/models/good_job/job.rb:742:in `reset_batch_values'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `block in run_callbacks'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:141:in `run_callbacks'",
"/app/app/models/good_job/job.rb:551:in `perform'",
"/app/app/models/good_job/job.rb:299:in `block in perform_with_advisory_lock'",
"/app/app/models/concerns/good_job/advisory_lockable.rb:172:in `block in with_advisory_lock'",
"/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation.rb:939:in `_scoping'",
"/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation.rb:467:in `scoping'",
"/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/scoping/default.rb:51:in `unscoped'",
"/app/app/models/concerns/good_job/advisory_lockable.rb:172:in `with_advisory_lock'",
"/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation/delegation.rb:79:in `block in with_advisory_lock'",
"/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation.rb:939:in `_scoping'",
"/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation.rb:467:in `scoping'",
"/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation/delegation.rb:79:in `with_advisory_lock'",
"/app/app/models/good_job/job.rb:293:in `perform_with_advisory_lock'",
"/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation/delegation.rb:79:in `block in perform_with_advisory_lock'",
"/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation.rb:939:in `_scoping'",
"/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation.rb:467:in `scoping'",
"/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation/delegation.rb:79:in `perform_with_advisory_lock'",
"/app/lib/good_job/job_performer.rb:35:in `block in next'",
"/app/lib/good_job/capsule_tracker.rb:94:in `register'",
"/app/lib/good_job/job_performer.rb:34:in `next'",
"/app/lib/good_job/scheduler.rb:276:in `block (2 levels) in create_task'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/reloader.rb:77:in `block in wrap'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/execution_wrapper.rb:92:in `wrap'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/reloader.rb:74:in `wrap'",
"/app/lib/good_job/scheduler.rb:275:in `block in create_task'",
"/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/safe_task_executor.rb:24:in `block in execute'",
"/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb:48:in `block in synchronize'",
"/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb:48:in `synchronize'",
"/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb:48:in `synchronize'",
"/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/safe_task_executor.rb:22:in `execute'",
"/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/ivar.rb:170:in `safe_execute'",
"/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/scheduled_task.rb:298:in `process_task'",
"/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/timer_set.rb:166:in `block (2 levels) in process_tasks'",
"/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:359:in `run_task'",
"/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:350:in `block (3 levels) in create_worker'",
"<internal:kernel>:187:in `loop'",
"/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:341:in `block (2 levels) in create_worker'",
"/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:340:in `catch'",
"/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:340:in `block in create_worker'"
],
"process_id": "4be80d76-10b2-4667-a09a-88925a35fbea",
"duration": "0.016731"
}
}
12мс у черзі
14мс час виконання
Відхилено
Помилка:
ExampleJob::ExpectedError: Executed 1 time.
-
-
app/jobs/example_job.rb:39:in `perform'
/app/demo/app/jobs/example_job.rb:39:in `perform'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/execution.rb:68:in `block in _perform_job'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:121:in `block in run_callbacks'
/app/vendor/bundle/ruby/3.3.0/gems/i18n-1.14.6/lib/i18n.rb:353:in `with_locale'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/translation.rb:9:in `block (2 levels) in <module:Translation>'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `instance_exec'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `block in run_callbacks'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/core_ext/time/zones.rb:65:in `use_zone'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/timezones.rb:9:in `block (2 levels) in <module:Timezones>'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `instance_exec'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `block in run_callbacks'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:141:in `run_callbacks'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/execution.rb:67:in `_perform_job'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/instrumentation.rb:32:in `_perform_job'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/execution.rb:51:in `perform_now'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/instrumentation.rb:26:in `block in perform_now'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/railties/job_runtime.rb:13:in `block in instrument'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/instrumentation.rb:40:in `block in instrument'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/notifications.rb:206:in `block in instrument'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/notifications/instrumenter.rb:58:in `instrument'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/notifications.rb:206:in `instrument'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/instrumentation.rb:39:in `instrument'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/railties/job_runtime.rb:11:in `instrument'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/instrumentation.rb:26:in `perform_now'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/logging.rb:18:in `block in perform_now'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/tagged_logging.rb:139:in `block in tagged'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/tagged_logging.rb:39:in `tagged'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/tagged_logging.rb:139:in `tagged'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/broadcast_logger.rb:241:in `method_missing'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/logging.rb:25:in `tag_logger'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/logging.rb:18:in `perform_now'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/execution.rb:29:in `block in execute'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:121:in `block in run_callbacks'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/railtie.rb:67:in `block (4 levels) in <class:Railtie>'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/reloader.rb:77:in `block in wrap'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/execution_wrapper.rb:88:in `wrap'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/reloader.rb:74:in `wrap'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/railtie.rb:66:in `block (3 levels) in <class:Railtie>'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `instance_exec'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `block in run_callbacks'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:141:in `run_callbacks'
/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/execution.rb:27:in `execute'
/app/app/models/good_job/job.rb:600:in `block (3 levels) in perform'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/notifications.rb:206:in `block in instrument'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/notifications/instrumenter.rb:58:in `instrument'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/notifications.rb:206:in `instrument'
/app/app/models/good_job/job.rb:599:in `block (2 levels) in perform'
/app/lib/good_job/current_thread.rb:113:in `within'
/app/app/models/good_job/job.rb:557:in `block in perform'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:121:in `block in run_callbacks'
/app/app/models/good_job/batch.rb:80:in `within_thread'
/app/app/models/good_job/job.rb:742:in `reset_batch_values'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `block in run_callbacks'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:141:in `run_callbacks'
/app/app/models/good_job/job.rb:551:in `perform'
/app/app/models/good_job/job.rb:299:in `block in perform_with_advisory_lock'
/app/app/models/concerns/good_job/advisory_lockable.rb:172:in `block in with_advisory_lock'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation.rb:939:in `_scoping'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation.rb:467:in `scoping'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/scoping/default.rb:51:in `unscoped'
/app/app/models/concerns/good_job/advisory_lockable.rb:172:in `with_advisory_lock'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation/delegation.rb:79:in `block in with_advisory_lock'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation.rb:939:in `_scoping'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation.rb:467:in `scoping'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation/delegation.rb:79:in `with_advisory_lock'
/app/app/models/good_job/job.rb:293:in `perform_with_advisory_lock'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation/delegation.rb:79:in `block in perform_with_advisory_lock'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation.rb:939:in `_scoping'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation.rb:467:in `scoping'
/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation/delegation.rb:79:in `perform_with_advisory_lock'
/app/lib/good_job/job_performer.rb:35:in `block in next'
/app/lib/good_job/capsule_tracker.rb:94:in `register'
/app/lib/good_job/job_performer.rb:34:in `next'
/app/lib/good_job/scheduler.rb:276:in `block (2 levels) in create_task'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/reloader.rb:77:in `block in wrap'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/execution_wrapper.rb:92:in `wrap'
/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/reloader.rb:74:in `wrap'
/app/lib/good_job/scheduler.rb:275:in `block in create_task'
/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/safe_task_executor.rb:24:in `block in execute'
/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb:48:in `block in synchronize'
/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb:48:in `synchronize'
/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb:48:in `synchronize'
/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/safe_task_executor.rb:22:in `execute'
/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/ivar.rb:170:in `safe_execute'
/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/scheduled_task.rb:298:in `process_task'
/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/timer_set.rb:98:in `block in ns_post_task'
/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:359:in `run_task'
/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:350:in `block (3 levels) in create_worker'
<internal:kernel>:187:in `loop'
/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:341:in `block (2 levels) in create_worker'
/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:340:in `catch'
/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:340:in `block in create_worker'
{
"job_id": "30ee118d-0cba-4200-892a-72406f980ec7",
"locale": "en",
"priority": 0,
"timezone": "UTC",
"arguments": [
"error_five_times"
],
"job_class": "ExampleJob",
"executions": 0,
"queue_name": "default",
"enqueued_at": "2024-10-22T13:58:40.002992540Z",
"scheduled_at": "2024-10-22T13:58:40.002738017Z",
"provider_job_id": null,
"exception_executions": {
},
"_good_job_execution": {
"id": "e10c8104-8d31-4f5f-8dbc-790010aa5ac4",
"created_at": "2024-10-22 13:58:40 UTC",
"updated_at": "2024-10-22 13:58:40 UTC",
"active_job_id": "30ee118d-0cba-4200-892a-72406f980ec7",
"job_class": "ExampleJob",
"queue_name": "default",
"scheduled_at": "2024-10-22 13:58:40 UTC",
"finished_at": "2024-10-22 13:58:40 UTC",
"error": "ExampleJob::ExpectedError: Executed 1 time.",
"error_event": "retried",
"error_backtrace": [
"/app/demo/app/jobs/example_job.rb:39:in `perform'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/execution.rb:68:in `block in _perform_job'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:121:in `block in run_callbacks'",
"/app/vendor/bundle/ruby/3.3.0/gems/i18n-1.14.6/lib/i18n.rb:353:in `with_locale'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/translation.rb:9:in `block (2 levels) in <module:Translation>'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `instance_exec'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `block in run_callbacks'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/core_ext/time/zones.rb:65:in `use_zone'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/timezones.rb:9:in `block (2 levels) in <module:Timezones>'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `instance_exec'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `block in run_callbacks'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:141:in `run_callbacks'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/execution.rb:67:in `_perform_job'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/instrumentation.rb:32:in `_perform_job'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/execution.rb:51:in `perform_now'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/instrumentation.rb:26:in `block in perform_now'",
"/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/railties/job_runtime.rb:13:in `block in instrument'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/instrumentation.rb:40:in `block in instrument'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/notifications.rb:206:in `block in instrument'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/notifications/instrumenter.rb:58:in `instrument'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/notifications.rb:206:in `instrument'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/instrumentation.rb:39:in `instrument'",
"/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/railties/job_runtime.rb:11:in `instrument'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/instrumentation.rb:26:in `perform_now'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/logging.rb:18:in `block in perform_now'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/tagged_logging.rb:139:in `block in tagged'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/tagged_logging.rb:39:in `tagged'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/tagged_logging.rb:139:in `tagged'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/broadcast_logger.rb:241:in `method_missing'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/logging.rb:25:in `tag_logger'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/logging.rb:18:in `perform_now'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/execution.rb:29:in `block in execute'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:121:in `block in run_callbacks'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/railtie.rb:67:in `block (4 levels) in <class:Railtie>'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/reloader.rb:77:in `block in wrap'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/execution_wrapper.rb:88:in `wrap'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/reloader.rb:74:in `wrap'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/railtie.rb:66:in `block (3 levels) in <class:Railtie>'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `instance_exec'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `block in run_callbacks'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:141:in `run_callbacks'",
"/app/vendor/bundle/ruby/3.3.0/gems/activejob-7.1.4.1/lib/active_job/execution.rb:27:in `execute'",
"/app/app/models/good_job/job.rb:600:in `block (3 levels) in perform'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/notifications.rb:206:in `block in instrument'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/notifications/instrumenter.rb:58:in `instrument'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/notifications.rb:206:in `instrument'",
"/app/app/models/good_job/job.rb:599:in `block (2 levels) in perform'",
"/app/lib/good_job/current_thread.rb:113:in `within'",
"/app/app/models/good_job/job.rb:557:in `block in perform'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:121:in `block in run_callbacks'",
"/app/app/models/good_job/batch.rb:80:in `within_thread'",
"/app/app/models/good_job/job.rb:742:in `reset_batch_values'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:130:in `block in run_callbacks'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/callbacks.rb:141:in `run_callbacks'",
"/app/app/models/good_job/job.rb:551:in `perform'",
"/app/app/models/good_job/job.rb:299:in `block in perform_with_advisory_lock'",
"/app/app/models/concerns/good_job/advisory_lockable.rb:172:in `block in with_advisory_lock'",
"/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation.rb:939:in `_scoping'",
"/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation.rb:467:in `scoping'",
"/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/scoping/default.rb:51:in `unscoped'",
"/app/app/models/concerns/good_job/advisory_lockable.rb:172:in `with_advisory_lock'",
"/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation/delegation.rb:79:in `block in with_advisory_lock'",
"/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation.rb:939:in `_scoping'",
"/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation.rb:467:in `scoping'",
"/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation/delegation.rb:79:in `with_advisory_lock'",
"/app/app/models/good_job/job.rb:293:in `perform_with_advisory_lock'",
"/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation/delegation.rb:79:in `block in perform_with_advisory_lock'",
"/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation.rb:939:in `_scoping'",
"/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation.rb:467:in `scoping'",
"/app/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4.1/lib/active_record/relation/delegation.rb:79:in `perform_with_advisory_lock'",
"/app/lib/good_job/job_performer.rb:35:in `block in next'",
"/app/lib/good_job/capsule_tracker.rb:94:in `register'",
"/app/lib/good_job/job_performer.rb:34:in `next'",
"/app/lib/good_job/scheduler.rb:276:in `block (2 levels) in create_task'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/reloader.rb:77:in `block in wrap'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/execution_wrapper.rb:92:in `wrap'",
"/app/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4.1/lib/active_support/reloader.rb:74:in `wrap'",
"/app/lib/good_job/scheduler.rb:275:in `block in create_task'",
"/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/safe_task_executor.rb:24:in `block in execute'",
"/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb:48:in `block in synchronize'",
"/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb:48:in `synchronize'",
"/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb:48:in `synchronize'",
"/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/safe_task_executor.rb:22:in `execute'",
"/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/ivar.rb:170:in `safe_execute'",
"/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/scheduled_task.rb:298:in `process_task'",
"/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/timer_set.rb:98:in `block in ns_post_task'",
"/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:359:in `run_task'",
"/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:350:in `block (3 levels) in create_worker'",
"<internal:kernel>:187:in `loop'",
"/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:341:in `block (2 levels) in create_worker'",
"/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:340:in `catch'",
"/app/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:340:in `block in create_worker'"
],
"process_id": "4be80d76-10b2-4667-a09a-88925a35fbea",
"duration": "0.01474"
}
}