Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion chimerapy/orchestrator/cli/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ async def aorchestrate(config: ChimeraPyPipelineConfig) -> None:
"manager.timeout.worker-shutdown", config.timeouts.shutdown_timeout
)

await manager.async_shutdown()
await manager.async_reset()
await manager.async_shutdown(shutdown_workers=config.keep_remote_workers)
print("Shutting down local workers...")
for worker in local_workers:
await worker.async_shutdown()
Expand Down
5 changes: 5 additions & 0 deletions chimerapy/orchestrator/models/pipeline_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,11 @@ class ChimeraPyPipelineConfig(BaseModel):
description="The timeouts for the pipeline operation.",
)

keep_remote_workers: bool = Field(
default=True,
description="If true, keep remote workers after pipeline has finished collection.",
)

def instantiate_manager(self) -> cpe.Manager:
m = cpe.Manager(
**self.manager_config.model_dump(
Expand Down