-
Notifications
You must be signed in to change notification settings - Fork 689
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
APScheduler main loop throws exception IOError 514 #45
Comments
Original comment by maoz_guttman (Bitbucket: maoz_guttman, GitHub: Unknown):
|
Original comment by maoz_guttman (Bitbucket: maoz_guttman, GitHub: Unknown): In my Python script I am calling time.sleep API in few places and I had to wrap it in a try-except block since I hit that IOError 514 exception |
Original comment by maoz_guttman (Bitbucket: maoz_guttman, GitHub: Unknown): Didn't try since the try-except block "workaround" is good enough |
Original comment by maoz_guttman (Bitbucket: maoz_guttman, GitHub: Unknown): I will try next week to send a Unix signal during time.sleep() and will update you later. |
Original comment by maoz_guttman (Bitbucket: maoz_guttman, GitHub: Unknown): Update: I am trying to reproduce it by calling time.sleep API but without success (yet) |
Original comment by maoz_guttman (Bitbucket: maoz_guttman, GitHub: Unknown): Hi, I was running time.sleep in a dummy script (using threads) for more than a week and have not yet hit the "IOError 514 exception". I will be grateful if you will patch APScheduler as I described at the beginning of this thread. Thanks, |
Original comment by maoz_guttman (Bitbucket: maoz_guttman, GitHub: Unknown): Yes. I did it in a naïve way. Is that what you meant by interrupting the sleep with signals? |
Original comment by Alex Grönholm (Bitbucket: agronholm, GitHub: agronholm): Yes. I wish there was a way to reproduce the issue. |
Original comment by maoz_guttman (Bitbucket: maoz_guttman, GitHub: Unknown): tnx. |
Originally reported by: maoz_guttman (Bitbucket: maoz_guttman, GitHub: Unknown)
Hi,
I hit the "APScheduler main loop throws exception IOError 514" as described in issue #18
It is not easy to reproduce it since it is rarely happens and you have to run APScheduler for a long time with a lot of jobs, but it is easy to fix.
A simple way to workaround it is by wrapping "self._wakeup.wait(wait_seconds)" in scheduler.py --> _main_loop function in a try-except block. Something like:
Are you willing to do that fix?
Thanks,
Maoz
The text was updated successfully, but these errors were encountered: