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

Create lock file for main script #21

Open
MichaelCurrin opened this issue Jan 12, 2020 · 1 comment
Open

Create lock file for main script #21

MichaelCurrin opened this issue Jan 12, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@MichaelCurrin
Copy link
Owner

MichaelCurrin commented Jan 12, 2020

Exit if it already locked - print to stderr and give exit code.

Else lock file gets remove always with try finally perhaps

@MichaelCurrin MichaelCurrin added the enhancement New feature or request label Jan 12, 2020
@MichaelCurrin
Copy link
Owner Author

Add notes

  • For main task, it could accidentally run twice if there is a short frequency or long tasks.
  • for individual files not needing locks, as they as run in a sequence.

@MichaelCurrin MichaelCurrin changed the title Create lock file for main script and exit if it already locked Create lock file for main script Jan 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant