Professional Machine Learning Engineer free question 9 / 10 · Domain 5: Automating and orchestrating ML pipelines
You updated the cron expression of a weekly Agent Platform Pipelines schedule. At the moment of the update, one run created by the old schedule is running and another is queued. Which statement about what happens afterwards matches the official description?
- The running one is canceled, and the queued one runs at the new frequency
- The running one is canceled, and the queued one is dropped as well
- The running one continues, and the queued one is dropped
- The running one continues, and the queued one also runs in turn
Show the answer and explanation
Answer: C
Why this is correct
Updating a schedule is similar to deleting and recreating it. When you update a schedule, new runs are scheduled based on the frequency of the updated schedule, new runs are no longer created based on the old schedule, and any queued runs are dropped. Pipeline runs that were already created by the old schedule are not paused or canceled.
Why the other options are wrong
"The running one is canceled, and the queued one runs at the new frequency" … Runs already created by the old schedule are not paused or canceled by the update. Queued runs are dropped rather than run at the new frequency.
"The running one continues, and the queued one also runs in turn" … Updating a schedule is treated like deleting and recreating it. New runs are no longer created from the old schedule, and queued runs are dropped.
"The running one is canceled, and the queued one is dropped as well" … That queued runs are dropped is right, but runs already created by the old schedule are neither paused nor canceled and carry on.
Key point
An update recalculates NEXT_RUN_TIME, but START_TIME stays unchanged. To stop a run that is already in progress, cancel that run separately from updating the schedule.