-
Notifications
You must be signed in to change notification settings - Fork 10
validate hpc slurm config using pydantic #375
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report❌ Patch coverage is
🚀 New features to boost your workflow:
|
lewisjared
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor changes, but nice stuff. Should we do something similar for PBS?
| username: str | ||
| partition: str | None = None | ||
| log_dir: str = "runinfo" | ||
| qos: str | None = None | ||
| req_nodes: Annotated[int, Field(strict=True, ge=1, le=1000)] = 1 | ||
| cores_per_worker: Annotated[int, Field(strict=True, ge=1, le=1000)] = 1 | ||
| mem_per_worker: Annotated[float, Field(strict=True, gt=0, lt=1000.0)] | None = None | ||
| max_workers_per_node: Annotated[int, Field(strict=True, ge=1, le=1000)] = 16 | ||
| validation: StrictBool = False | ||
| walltime: str = "00:30:00" | ||
| scheduler_options: str = "" | ||
| retries: Annotated[int, Field(strict=True, ge=1, le=3)] = 2 | ||
| max_blocks: Annotated[int, Field(strict=True, ge=1)] = 1 # one block mean one job? | ||
| worker_init: str = "" | ||
| overrides: str = "" | ||
| cmd_timeout: Annotated[int, Field(strict=True, ge=0)] = 120 | ||
| cpu_affinity: str = "none" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we have documentation for these fields?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Most of them are from parsl directly. We could document the fields from us and refer others to the parsl documents? What do you think of it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahh ok. Maybe add a link to the parsl docs to make it easier to find this linkage
Description
Checklist
Please confirm that this pull request has done the following:
changelog/