pyiron_base.jobs.job.extension.server.runmode module

Runmode class defines the different modes a pyiron job can be executed in

class pyiron_base.jobs.job.extension.server.runmode.Runmode(mode='modal')

Bases: object

Run mode describes how the job is going to be executed: - modal: the interactive run mode - non_modal: sending the job to the background on the same machine - queue: submit the job to the queuing system - manual: let the user manually execute the job - thread: internal job mode, which is selected when the master job is send to the queue. - worker: submit the job to the worker job for execution - interactive: the interactive run mode - interactive_non_modal: the combination of the interactive and the non_modal mode - srun: call SLURM to start the subprocess rather than starting it directly - executor: python interface to execute jobs based on the concurrent.futures.Executor

Parameters:

mode (str) – [‘modal’, ‘non_modal’, ‘queue’, ‘manual’, ‘thread’, ‘worker’, ‘interactive’, ‘interactive_non_modal’, ‘srun’, ‘executor’]

property mode

Get the run_mode of the job :returns: [‘modal’, ‘non_modal’, ‘queue’, ‘manual’, ‘thread’, ‘interactive’] :rtype: str