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

Wiki documentation for flock #793

Open
jjb opened this issue Feb 1, 2020 · 2 comments
Open

Wiki documentation for flock #793

jjb opened this issue Feb 1, 2020 · 2 comments

Comments

@jjb
Copy link

jjb commented Feb 1, 2020

I was happy to find this page: https://github.com/javan/whenever/wiki/Exclusive-cron-task-lock-with-flock

I made some changes to bring the command more in line with the built-in commands.

https://github.com/javan/whenever/wiki/Exclusive-cron-task-lock-with-flock/_compare/b92658c52b9c555cdff284c3b9bb9dcb1782e59f...fcc1264c5f5c18e3924ee8463519a6bf2a3c5a44?w=1

Also, I wrote this blog post to explore ways to achieve fair locking in a simple way (spoiler: I didn't find anything). http://code.jjb.cc/linux-flock-does-not-provide-fair-locking

Let me know what you think!

/cc @skojin

@jjb
Copy link
Author

jjb commented Feb 1, 2020

I wonder if there's any reason to not put :environment_variable=:environment on the other side of the flock invocation

@skojin
Copy link

skojin commented Feb 2, 2020

looks ok

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

No branches or pull requests

2 participants