Skip to content

Improve sidekiq-scheduler on_post_trigger debug logging - #984

Merged
bdunne merged 1 commit into
ManageIQ:masterfrom
Fryguy:debug_stuck_rufus_scheduler2
Sep 17, 2026
Merged

bdunne merged 1 commit into
ManageIQ:masterfrom
Fryguy:debug_stuck_rufus_scheduler2

Conversation

@Fryguy

@Fryguy Fryguy commented Sep 17, 2026

Copy link
Copy Markdown
Member
  • Switch on_post_trigger fired breadcrumb to info since debug logging is not enabled in production
  • Drop the completed breadcrumb — absence of the fired line is sufficient to detect when on_post_trigger stops being called
  • Rescue Exception instead of StandardError so that non-StandardError exceptions (e.g. Interrupt, NoMemoryError) are also logged before re-raising; these would otherwise kill the work thread silently with no indication of what happened

@bdunne Please review.

- Switch on_post_trigger fired breadcrumb to info since debug logging
  is not enabled in production
- Drop the completed breadcrumb — absence of the fired line is
  sufficient to detect when on_post_trigger stops being called
- Rescue Exception instead of StandardError so that non-StandardError
  exceptions (e.g. Interrupt, NoMemoryError) are also logged before
  re-raising; these would otherwise kill the work thread silently
  with no indication of what happened
@miq-bot

miq-bot commented Sep 17, 2026

Copy link
Copy Markdown
Member

Checked commit Fryguy@0cbdb41 with ruby 3.3.12, rubocop 1.89.0, haml-lint 0.78.0, and yamllint 1.37.1
1 file checked, 0 offenses detected
Everything looks fine. 🏆

@bdunne
bdunne merged commit a56317e into ManageIQ:master Sep 17, 2026
3 checks passed
@Fryguy
Fryguy deleted the debug_stuck_rufus_scheduler2 branch September 17, 2026 18:23
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.

3 participants