Skip to content

Conversation

kolbasov
Copy link
Contributor

Puma fires up the background hooks before the on_booted event. Since the plugin registers the monitor_solid_queue after Puma is fully booted, it doesn't get executed.

The fix is to move the monitor_solid_queue out of the on_booted and check whether the SolidQueue has started in the solid_queue_dead?.

Fixes #222

/cc @K0H205

Puma fires up the background hooks before the ```on_booted``` event. Since the
plugin registers the ```monitor_solid_queue``` after Puma is fully booted, it
doesn't get executed.

The fix is to move the ```monitor_solid_queue``` out of the ```on_booted```
and check whether the SolidQueue has started in the ```solid_queue_dead?```.
Copy link
Member

@rosa rosa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the delay, @kolbasov. Thanks a lot for doing this! 🙏

@rosa rosa merged commit 5d200d0 into rails:main Jul 19, 2024
@kolbasov
Copy link
Contributor Author

Most welcome, @rosa!

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.

monitor_solid_queue not working on Puma Plugin

2 participants