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

Improve time and memory parsing and allow environment variables for common options #6

Merged
merged 3 commits into from
Aug 21, 2024

Conversation

mbhall88
Copy link
Owner

Closes #5

The memory parsing has improved, especially for larger values. Previously, 1.5T would get rounded up to 2TB, which was annoying! Now anything larger than 1M is round to the nearest megabyte and passed to sbatch as megabytes to keep precisio, so now -m 1.5t is passed to sbatch as 1500000M.

The time parsing has also improved a little, with the notable difference being that passing a value with no unit -t 3 is passed straight to sbatch, which will use minutes by default. Previously we would have set this to 3 seconds.

Lastly, you can now set the environment variables SSUBMIT_TIME, SSUBMIT_MEMORY, SSUBMIT_SHEBANG, and SSUBMIT_SET for their respective options. This is handy for setting a ssubmit default rather than having to enter it on the command line each time.

@mbhall88 mbhall88 merged commit 9e87374 into main Aug 21, 2024
16 checks passed
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.

Set shebang from environment variable
1 participant