File tree Expand file tree Collapse file tree 4 files changed +7
-1
lines changed
lib/scheduler_clients/slurm Expand file tree Collapse file tree 4 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9
9
10
10
### Added
11
11
12
- - Path parameter for submitting jobs from a remote file
12
+ - ` account ` optional parameter to job submission request
13
+ - ` script_path ` optional parameter for submitting jobs from a remote file
13
14
- JupyterHub example
14
15
- Documentation for logging architecture
15
16
- Workflow orchestrator example
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ class PostJobSubmitRequest(JobSubmitRequestModel):
24
24
{
25
25
"job" : {
26
26
"name" : "Example with inline script" ,
27
+ "account" : "myproject" ,
27
28
"working_directory" : "{{home_path}}" ,
28
29
"standard_input" : "/dev/null" ,
29
30
"standard_output" : "count_to_100.out" ,
@@ -38,6 +39,7 @@ class PostJobSubmitRequest(JobSubmitRequestModel):
38
39
{
39
40
"job" : {
40
41
"name" : "Example with script path" ,
42
+ "account" : "myproject" ,
41
43
"working_directory" : "{{home_path}}" ,
42
44
"standard_input" : "/dev/null" ,
43
45
"standard_output" : "count_to_100.out" ,
Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ def get_command(self) -> str:
23
23
in self .job_description .environment .items ())
24
24
cmd += [f"--export='ALL,{ env } '" ]
25
25
cmd += [f"--chdir='{ self .job_description .current_working_directory } '" ]
26
+ if self .job_description .account :
27
+ cmd .append (f"--account='{ self .job_description .account } '" )
26
28
if self .job_description .name :
27
29
cmd .append (f"--job-name='{ self .job_description .name } '" )
28
30
if self .job_description .standard_error :
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ def __init__(self, **kwargs):
36
36
37
37
class SlurmJobDescription (JobDescriptionModel ):
38
38
name : Optional [str ] = Field (default = None , description = "Name for the job" )
39
+ account : Optional [str ] = Field (default = None , description = "Charge job resources to specified account" )
39
40
current_working_directory : str = Field (alias = "working_directory" , description = "Job working directory" )
40
41
standard_input : Optional [str ] = Field (default = None , description = "Standard input file name" )
41
42
standard_output : Optional [str ] = Field (default = None , description = "Standard output file name" )
You can’t perform that action at this time.
0 commit comments