Skip to content

Fix Sidekiq total time when a job raises - #46

Merged
alexisbernard merged 2 commits into
masterfrom
fix_sidekiq_total_time_on_error
Sep 21, 2026
Merged

alexisbernard merged 2 commits into
masterfrom
fix_sidekiq_total_time_on_error

Conversation

@alexisbernard

@alexisbernard alexisbernard commented Sep 21, 2026 •

Copy link
Copy Markdown
Member

Section.start/stop around Sidekiq perform and Agent#measure_method did not run stop on exceptions, so job runtime stayed at zero. Use Section.measure with ensure so sections always stop and total time is recorded.

Section.start/stop around Sidekiq perform did not run stop on
exceptions, so job runtime stayed at zero. Use Section.measure with
ensure so sections always stop and total time is recorded.
@alexisbernard
alexisbernard merged commit bcfc16c into master Sep 21, 2026
40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant