Skip to content
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

Sbatch options #18

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
Draft

Sbatch options #18

wants to merge 9 commits into from

Conversation

yichen88
Copy link
Contributor

Please check if the PR fulfills these requirements (please use '[x]' to check the checkboxes, or submit the PR and then click the checkboxes)

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

Does this PR already have an issue describing the problem ? If so, link to this issue using '#XXX' and skip the rest
#15

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
feature

What is the current behavior? (You can also link to an open issue here)

What is the new behavior (if this is a feature change)?

Does this PR introduce a breaking change or deprecate an API? If yes, check the following:

  • The Breaking Change or Deprecated label has been added
  • The migration guide has been updated in the github wiki (What changes might users need to make in their application due to this PR?)

Other information:

(if any of the questions/checkboxes don't apply, please delete them entirely)

Yichen TANG and others added 9 commits July 15, 2019 11:53
The after() would still be executed if future is cancelled by computation manager(ex: error detected).In this case, it will throw CompleteException.

Fix tests: junit assert on main thread.

Job id's relation should not be cleared before send scancel cmd to slurm

Signed-off-by: Yichen TANG <[email protected]>
Signed-off-by: Yichen TANG <[email protected]>
Signed-off-by: yichen88 <[email protected]>
- Remove --array=0 if count = 1(Not used in previous)

- Initialize SbatchGenerator with all parameters(flagdirs, command, workingDir, env)

- mydone_ flag file would be added at the last command's execution. If it is not an array job, then just one mydone_ file would be created and the countDownLatch is set to one. If is an array-job, countdownLatch set to n and wait for n mydone_ file created.

- Job would be auto cancelled by slurm with a new argument(--kill-on-invalid-dep=yes) added in sbatch's cmd by default.

- no more batchIds in TaskStore.

Signed-off-by: Yichen TANG <[email protected]>
Signed-off-by: Yichen TANG <[email protected]>
Signed-off-by: Yichen TANG <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant