Proposal: Introduce a new API to wait until a given scheduled job is completed #3018
Labels
module/task
Status/Active
Proposals that are under review
Team/DIU
Data, IO, and Util packages related issues
Type/Proposal
Summary
In the task module, we can schedule the one-time or recursive job, but this scheduler does not wait until that scheduled job is finished. So we have to on-hold the execution by using
runtime:sleep("TIME_IN_SECONDS");
. So, this proposal introduces a new API to wait until that scheduled job is completed.Goals
Provide a way to on-hold the execution until the scheduled task is completed.
Motivation
As mentioned in the summary, the user doesn't have a direct way to on-hold the execution until the scheduled task is completed. If a user scheduled the task with the
runtime:sleep
API, they have to calculate the time in seconds. So, this way is hard to schedule long-term jobs. It would be easy for them if we provided an API to handle it.Description
The text was updated successfully, but these errors were encountered: