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

Refactor SLURM Job Submission to Use --wrap with subprocess.run() #88

Open
karatugo opened this issue Jan 11, 2024 · 0 comments
Open

Refactor SLURM Job Submission to Use --wrap with subprocess.run() #88

karatugo opened this issue Jan 11, 2024 · 0 comments

Comments

@karatugo
Copy link
Member

Description:
We are looking to refactor our current SLURM job submission implementation, which writes to a temporary sbatch script, to use the --wrap option directly within Python's subprocess.run(). This change aims to simplify the process by avoiding the creation of temporary files.

Current Implementation:
The existing code writes an sbatch script to a temporary file and submits it using subprocess.run(). The job submission details like memory, time, output, and error file paths are set within this script, along with the command to be executed.

Proposed Change:
We want to eliminate the temporary script file and use the --wrap argument to pass the command directly to sbatch via subprocess.run().

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

No branches or pull requests

1 participant