Skip to content

Long sleep between iteractions #27

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

Closed
dvaqueiro opened this issue Jul 14, 2016 · 1 comment
Closed

Long sleep between iteractions #27

dvaqueiro opened this issue Jul 14, 2016 · 1 comment

Comments

@dvaqueiro
Copy link

I use the library to perform task in specific days and then sleep until next day. I can sleep periods of 2-3 days but i detect my command doesnt respect this periods and make iteractions random.

It's something that i doesn't see.

Sorry about my English.

@mac-cain13
Copy link
Owner

If you want to have full control over the moment of execution I would recommend setting up a cronjob. Sleeping that long is unreliable because sleep will also stop when certain signals are send to the process. Cron is exactly made for the thing you want to do; you can tell it exactly when it should execute a certain command and at what interval.

Hope that helps!

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