fix(scheduled-tasks): skip scheduling after stop (#1251)
Co-authored-by: Isaac Sanchez <isanchez-hawkins@arize.com>
This commit is contained in:
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);
|
const taskKey = buildTaskKey(projectID, taskID);
|
||||||
clearTimerForKey(taskKey);
|
clearTimerForKey(taskKey);
|
||||||
|
|
||||||
|
if (!started) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!Number.isFinite(nextRunAt) || nextRunAt <= 0) {
|
if (!Number.isFinite(nextRunAt) || nextRunAt <= 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user