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 docs/reference/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ floability run --instance <instance-name-or-path>

- `--jupyter-port INT` (default: `8888`)
- `--manager-ports A,B` (default: `9123,9150`)
- `--worker-transfer-ports A:B` (optional): port range for worker-worker transfers (e.g. `10000:11000`). Passed as `--transfer-port` to vine_factory.
- `--manager-name NAME`: TaskVine manager name (auto-generated if omitted)
- `--env-vars KEY=VALUE,...`: environment variables to inject into the conda env

Expand Down
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ channels:
- conda-forge
dependencies:
- python
- ndcctools
- ndcctools>=7.17.0
- pyyaml
- requests
- pip
Expand Down
7 changes: 7 additions & 0 deletions floability/commands/argument_groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,3 +204,10 @@ def add_execution_args(parser: argparse.ArgumentParser) -> None:
action="store_true",
help="Enable debug mode for workers",
)

vf_group.add_argument(
Comment on lines +207 to +208
"--worker-transfer-ports",
required=False,
help="Port range for worker-worker transfers (e.g. 10000:11000). Passed as --transfer-port to vine_factory",
)

4 changes: 4 additions & 0 deletions floability/commands/workers.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ def add_arguments(self, parser: argparse.ArgumentParser) -> None:
action="store_true",
help="Enable debug mode for workers.",
)
start_parser.add_argument(
"--worker-transfer-ports",
help="Port range for worker-worker transfers (e.g. 10000:11000). Passed as --transfer-port to vine_factory",
)

# workers stop sub-command
stop_parser = workers_subparsers.add_parser(
Expand Down
2 changes: 2 additions & 0 deletions floability/workers_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ def _normalize_compute_specs(
"cores": _attr(cli_args, "cores_per_worker"),
"batch_options": _attr(cli_args, "batch_options"),
"debug_workers": _attr(cli_args, "debug_workers"),
"transfer_port": _attr(cli_args, "worker_transfer_ports"),
},
)

Expand Down Expand Up @@ -344,6 +345,7 @@ def _start_vine_factory(
("--timeout", "timeout"),
("--worker-extra-options", "worker_extra_options"),
("--condor-requirements", "condor_requirements"),
("--transfer-port", "transfer_port"),
]:
if cfg.get(key):
cmd.append(f"{flag}={cfg[key]}")
Expand Down