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

Use multiple temporary files for storing state #9

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

coledot
Copy link

@coledot coledot commented Oct 11, 2014

If one sets up multiple threads to watch projects on the same server, then each thread will share a state file. That's no good, so instead setup a separate state file for each instance. Also, throw them into a temporary dir for good measure.

@@ -1,3 +1,5 @@
require 'chicanery'
Copy link
Author

Choose a reason for hiding this comment

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

unrelated; fixes specs

@markryall
Copy link
Owner

hey - i'm so sorry i didn't respond earlier - i turned off all github email notifications because of the PR noise from my workplace :(

Wouldn't this break the crontab based execution in that the state would be persisted to a new location on each execution (unless you had explicitly specified the location of the state file)?

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.

None yet

2 participants