Skip to content

Commit 7ec1d25

Browse files
authored
✨Computational backend: refactoring of dv-2 computational scheduler (Part 2) (#6711)
1 parent 9915ebd commit 7ec1d25

File tree

6 files changed

+216
-171
lines changed

6 files changed

+216
-171
lines changed

packages/models-library/src/models_library/clusters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ class Config:
154154

155155

156156
ClusterID: TypeAlias = NonNegativeInt
157-
DEFAULT_CLUSTER_ID: Final[NonNegativeInt] = 0
157+
DEFAULT_CLUSTER_ID: Final[ClusterID] = 0
158158

159159

160160
class Cluster(BaseCluster):

services/director-v2/src/simcore_service_director_v2/modules/comp_scheduler/__init__.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@ async def start_scheduler() -> None:
1616
with log_context(
1717
_logger, level=logging.INFO, msg="starting computational scheduler"
1818
):
19-
app.state.scheduler = scheduler = await _scheduler_factory.create_from_db(
20-
app
21-
)
22-
scheduler.recover_scheduling()
19+
app.state.scheduler = await _scheduler_factory.create_from_db(app)
2320

2421
return start_scheduler
2522

0 commit comments

Comments
 (0)