Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Actually wait for scheduler to start #151

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

kobsy
Copy link
Contributor

@kobsy kobsy commented Feb 4, 2022

Summary

The Houston observer event is fired before the call to start the daemon, setting up a potential race condition. We should wait to listen for an event after the call to start the daemon to ensure no queued timers get dropped.

@@ -14,6 +14,7 @@ def self.daemonize(name)
connected_at = Time.now
Houston.observer.fire "daemon:#{name}:start"
yield
Copy link
Member

Choose a reason for hiding this comment

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

Does this line not block while the scheduler is running?

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.

2 participants