v0.8.0
In this release, we refactored the batch module, which is used for job submission.
Major changes include:
- Integrate the functions in the JobSubmission class
- Use pydantic and typing to validate the argument types so that the error message will be easy to read if the arguments are not in the correct format. Also, the error messages will be thrown during the initialization before the submission actually runs.
- The overwriting and log-dir checking for dali is also put in the validators.
- Use simple_slurm to generate the sbatch script instead of a hard-coded template. Simple_slurm deletes the batch automatically after the submission. The script is also available with the “dry run” option. More information is accessible by setting verbose to be True
Note: The submit_job() function is kept for compatibility so that the users can still use their existing code. But if the users use JobSubmission, there will be more information provided in modern code editor like vscode