schedule icon indicating copy to clipboard operation
schedule copied to clipboard

Is it somehow possible to add in milliseconds to schedule time?

Open yetoyeto opened this issue 5 years ago • 3 comments

Is it somehow possible to add in milliseconds to schedule time?

yetoyeto avatar Jul 17 '19 17:07 yetoyeto

Any news about it?

rocchidavide avatar Nov 27 '19 08:11 rocchidavide

+1

NixBiks avatar Feb 10 '20 23:02 NixBiks

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.

SijmenHuizenga avatar Apr 11 '21 08:04 SijmenHuizenga