fix(scheduled-tasks): skip scheduling after stop (#1251)

Co-authored-by: Isaac Sanchez <isanchez-hawkins@arize.com>
This commit is contained in:
Isaac Sanchez-Hawkins
2026-05-13 10:32:16 +03:00
committed by GitHub
co-authored by Isaac Sanchez
parent c005c59186
commit 05c5683ecb
@@ -272,6 +272,10 @@ export const createScheduledTasksRuntime = (deps) => {
const taskKey = buildTaskKey(projectID, taskID);
clearTimerForKey(taskKey);
if (!started) {
return;
}
if (!Number.isFinite(nextRunAt) || nextRunAt <= 0) {
return;
}