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

Addding heroku_will_terminate? #3

Merged
merged 4 commits into from
Jul 28, 2018
Merged

Addding heroku_will_terminate? #3

merged 4 commits into from
Jul 28, 2018

Conversation

iloveitaly
Copy link
Collaborator

  • Added docs to explain the purpose
  • Used a global variable. I hate global variables, but storing this state in the worker seemed like a bad idea. A reference to the worker would need to be passed around to every object which wanted to see if the process would die.
  • A process dying soon feels like global state, so it didn't seem like a horrible idea to use a global variable

@pjambet would you mind taking a look here and offering some feedback?

@iloveitaly
Copy link
Collaborator Author

@pjambet Merging this in, but feel free to submit a post-merge review.

@iloveitaly iloveitaly merged commit 933ce82 into master Jul 28, 2018
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