Skip to content

Commit

Permalink
✨Computational backend: refactoring of dv-2 computational scheduler (…
Browse files Browse the repository at this point in the history
…Part 2) (ITISFoundation#6711)
  • Loading branch information
sanderegg authored and pcrespov committed Nov 18, 2024
1 parent b735f46 commit 1c2cac0
Show file tree
Hide file tree
Showing 6 changed files with 216 additions and 171 deletions.
2 changes: 1 addition & 1 deletion packages/models-library/src/models_library/clusters.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ class Config:


ClusterID: TypeAlias = NonNegativeInt
DEFAULT_CLUSTER_ID: Final[NonNegativeInt] = 0
DEFAULT_CLUSTER_ID: Final[ClusterID] = 0


class Cluster(BaseCluster):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@ async def start_scheduler() -> None:
with log_context(
_logger, level=logging.INFO, msg="starting computational scheduler"
):
app.state.scheduler = scheduler = await _scheduler_factory.create_from_db(
app
)
scheduler.recover_scheduling()
app.state.scheduler = await _scheduler_factory.create_from_db(app)

return start_scheduler

Expand Down
Loading

0 comments on commit 1c2cac0

Please sign in to comment.