How BatchSpawnerBase works
mainThe BatchSpawnerBase is an abstraction layer for batch job queueing systems. It provides a unified way to interact with various resource managers (Torque, Moab, SLURM, SGE, HTCondor, LSF).
Key features include:
- Template Variables: Configurable traits prefixed with
req_(e.g.,req_foo) are exposed as{foo}in job template scripts. - Template Engines: Templates automatically use
jinja2if they contain{{or{%syntax; otherwise, they use standard Pythonstr.format(). - Job Tracking: Uses a generic concept of job-IDs and ID-based state tracking rather than PIDs.
- Customizable Commands: Allows configuring command templates for submitting, querying, and cancelling jobs.