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

feat: will reject jobs, which attempt setting job names by 'slurm_extra' #93

Merged
merged 4 commits into from
Jun 7, 2024

Conversation

cmeesters
Copy link
Member

Occasionally, users reported that their attempt to overwrite SLURM job names leads to faulty behaviour (job status does not get queried properly, and a workflow will stall). This is understandable from the code and documented accordingly.

The PR checks for the job status using a regex - simple string matching might be too error-prone (e.g. "-J" can be part of a wildcard).

The decision is here, that the workflow will abort (raising WorkflowError and explaining and pointing to the docs).

Please check whether this is "likeable".

I do not know how to implement a test. The other executors leave me clueless.

@cmeesters cmeesters added the enhancement New feature or request label May 15, 2024
@cmeesters cmeesters marked this pull request as ready for review June 4, 2024 12:53
@cmeesters
Copy link
Member Author

Please check whether this is "likeable".

Don't think the change is so severe. Please let me know what you think.

@fgvieira
Copy link
Contributor

fgvieira commented Jun 4, 2024

Yeah, hard to make a testcase but changes not too drastic. Looks good!

fix: grammar and emphasis

Co-authored-by: Filipe G. Vieira <[email protected]>
@fgvieira fgvieira merged commit df2fd3d into main Jun 7, 2024
4 checks passed
@fgvieira fgvieira deleted the feat/control_for_jobname_in_slurm_extra branch June 7, 2024 07:46
cmeesters pushed a commit that referenced this pull request Jun 7, 2024
🤖 I have created a release *beep* *boop*
---


##
[0.6.0](v0.5.2...v0.6.0)
(2024-06-07)


### Features

* will reject jobs, which attempt setting job names by 'slurm_extra'
([#93](#93))
([df2fd3d](df2fd3d))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
cmeesters pushed a commit that referenced this pull request Jul 5, 2024
🤖 I have created a release *beep* *boop*
---


##
[0.6.0](v0.5.2...v0.6.0)
(2024-06-07)


### Features

* will reject jobs, which attempt setting job names by 'slurm_extra'
([#93](#93))
([df2fd3d](df2fd3d))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants