airsspy.scheduler#
Job scheduler interface for Slurm, SGE, and local execution.
Provides a unified interface for detecting the current scheduler environment, querying job metadata (CPUs, remaining walltime), and managing job arrays.
Module Contents#
Classes#
Data#
API#
- airsspy.scheduler.logger#
‘getLogger(…)’
- class airsspy.scheduler.Scheduler[source]#
Base class for job scheduler interfaces.
Initialization
- classmethod get_scheduler() Optional[airsspy.scheduler.Scheduler][source]#
Detect and return a scheduler instance for the current environment.
Tries Slurm, SGE, then Dummy. Returns None if not in any job and Dummy is not appropriate.
- class airsspy.scheduler.Dummy[source]#
Bases:
airsspy.scheduler.SchedulerDummy scheduler for local execution.
Initialization
- DEFAULT_REMAINING_TIME#
None
- class airsspy.scheduler.SGE[source]#
Bases:
airsspy.scheduler.SchedulerScheduler object for Sun Grid Engine (SGE).
Initialization
- get_end_time() Optional[datetime.datetime][source]#
Return the expected finish time of this job.
- get_start_time() Optional[datetime.datetime][source]#
Return the start time of this job.
- class airsspy.scheduler.Slurm[source]#
Bases:
airsspy.scheduler.SchedulerSlurm scheduler interface.
Initialization
- get_end_time() Optional[datetime.datetime][source]#
Return the end time of this job.
- get_running_jobs(user_name: Optional[str] = None) Optional[list[str]][source]#
Return a list of running job IDs for the current user.