Skip to content
Merged
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
1 change: 1 addition & 0 deletions dimos/core/global_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class GlobalConfig(BaseSettings):
simulation: bool = False
replay: bool = False
n_dask_workers: int = 2
memory_limit: str = "auto"
mujoco_room: str | None = None
robot_model: str | None = None

Expand Down
3 changes: 1 addition & 2 deletions dimos/core/module_coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,11 @@ class ModuleCoordinator(Resource):
def __init__(
self,
n: int | None = None,
memory_limit: str = "auto",
global_config: GlobalConfig | None = None,
) -> None:
cfg = global_config or GlobalConfig()
self._n = n if n is not None else cfg.n_dask_workers
self._memory_limit = memory_limit
self._memory_limit = cfg.memory_limit

def start(self) -> None:
self._client = core.start(self._n, self._memory_limit)
Expand Down