-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #436 from ExaWorks/fix_walltime_float_hours
Fix walltime float hours
- Loading branch information
Showing
3 changed files
with
16 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from datetime import timedelta | ||
|
||
from _test_tools import _get_executor_instance, _get_timeout, assert_completed | ||
from executor_test_params import ExecutorTestParams | ||
from psij import Job, JobSpec, JobAttributes | ||
|
||
|
||
def test_issue_435(execparams: ExecutorTestParams) -> None: | ||
job = Job(JobSpec(executable='/bin/date', launcher=execparams.launcher, | ||
attributes=JobAttributes(duration=timedelta(seconds=3700.5)))) | ||
ex = _get_executor_instance(execparams, job) | ||
ex.submit(job) | ||
status = job.wait(timeout=_get_timeout(execparams)) | ||
assert_completed(job, status) |