schedule
schedule copied to clipboard
Is it somehow possible to add in milliseconds to schedule time?
Is it somehow possible to add in milliseconds to schedule time?
Any news about it?
+1
I don't think millisecond precision scheduling fits well within this library because it would indicate that schedule can be used for high-precision job scheduling. And schedule's just isn't that great with precision...
Job's next execution is scheduled after a job completes. This causes the job's execution time to change the schedule. For example, if you need to run a job every second, but the job takes 0.5 second to run, the job invocation interval will be closer to 1,5 second. Another reason for little precision is the single-threaded implementation. If run_pending
is called, and multiple jobs are scheduled to run, all will run sequentially. A slow job delays the execution of jobs theirafter.
In cases where one needs something to run exactly at the right moment, at millisecond precision, I wouldn't recommend schedule.