Skip to content

Commit 113cb08

Browse files
Ken LippoldKen Lippold
authored andcommitted
Fixed periodic_task enabling logic
1 parent c86d2d4 commit 113cb08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

etl/services/task.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ def update_scheduling(task: Task, schedule_data: dict | None = None):
496496
task.periodic_task.start_time = schedule_data["start_time"]
497497

498498
task.periodic_task.enabled = (
499-
not task.orchestration_system_id
499+
task.orchestration_system.orchestration_system_type == "INTERNAL"
500500
and not schedule_data.get("paused", False)
501501
)
502502
task.periodic_task.date_changed = timezone.now()

0 commit comments

Comments
 (0)