You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Avoid spawning the same scheduled task multiple times (#252)
* Revert "Fix scheduler.once() running multiple times (#231)"
This reverts commit d4f78c5.
The same bug exists not only in schedule.once() but also
schedule.every() so a better fix is necessary.
* Add tests to capture abnormal consecutive execution of scheduled tasks
* Test using a threadpool
The threadpool already has a dedicated thread to run scheduler tasks
which is not the same as running in the main thread.
* Disable tests that can't be fixed
* The schedule module is not designed to run in a non-blocking fashion
This forces code to run sequentially on the scheduler thread.
fixes#231 (again)
0 commit comments