Skip to content

Commit

Permalink
Load patches in static definition
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivier Michaud committed Oct 17, 2024
1 parent c496e9c commit c3a9286
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/saturn_engine/worker_manager/api/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ def update_job(job_name: str) -> Json[UpdateResponse]:
def post_sync() -> Json[JobsSyncResponse]:
"""Create jobs that are due to be scheduled."""
with session_scope() as session:
# We reset static definition at each jobs sync
current_app.saturn.load_static_definition(session=session)
sync_jobs(
static_definitions=current_app.saturn.static_definitions,
session=session,
Expand Down

0 comments on commit c3a9286

Please sign in to comment.