Skip to content

Commit

Permalink
Update Dispatcher.py
Browse files Browse the repository at this point in the history
  • Loading branch information
thangckt committed May 28, 2024
1 parent e1d7c0c commit ee5b52a
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions dpgen/dispatcher/Dispatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,21 +138,20 @@ def make_submission_compat(
"""
if Version(api_version) < Version("1.0"):
raise RuntimeError(
f"API version {api_version} has been removed. Please upgrade to 1.0."
"API version below 1.0 is no longer supported. Please upgrade to version 1.0 or newer."
)

elif Version(api_version) >= Version("1.0"):
submission = make_submission(
machine,
resources,
commands=commands,
work_path=work_path,
run_tasks=run_tasks,
group_size=group_size,
forward_common_files=forward_common_files,
forward_files=forward_files,
backward_files=backward_files,
outlog=outlog,
errlog=errlog,
)
submission.run_submission()
submission = make_submission(

Check warning on line 144 in dpgen/dispatcher/Dispatcher.py

View check run for this annotation

Codecov / codecov/patch

dpgen/dispatcher/Dispatcher.py#L144

Added line #L144 was not covered by tests
machine,
resources,
commands=commands,
work_path=work_path,
run_tasks=run_tasks,
group_size=group_size,
forward_common_files=forward_common_files,
forward_files=forward_files,
backward_files=backward_files,
outlog=outlog,
errlog=errlog,
)
submission.run_submission()

Check warning on line 157 in dpgen/dispatcher/Dispatcher.py

View check run for this annotation

Codecov / codecov/patch

dpgen/dispatcher/Dispatcher.py#L157

Added line #L157 was not covered by tests

0 comments on commit ee5b52a

Please sign in to comment.