Runs all timed tasks where the timestamp is in the past and the status is “ready”.
All TimedTask
that are to be run are given a unique “run-{random-number}”
status
to uniquely identify them for this run. Individual task runners are then
responsible for setting that status to “completed” after the task completes successfully
or to “failed” if it failed.
All task runners are run in independent threading.Thread
s. After all
Thread
complete, any TimedTask
that still have
the unique “run-{random-number}” status are automatically set to the “failed” status.