Module Expr Str Import alias Import alias Import alias ImportFrom alias ImportFrom alias alias Assign NameStore ListLoad Str Str Assign NameStore ListLoad Str Str Assign NameStore ListLoad Str Str Str Str Assign NameStore ListLoad Str ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign TupleStore NameStore NameStore Call NameLoad Str Str Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad BinOpMod Str NameLoad Assign NameStore ListLoad BinOpMod Str NameLoad Expr Call NameLoad NameLoad NameLoad Assign TupleStore NameStore NameStore Call NameLoad Str Str Call NameLoad NameLoad Str NameLoad NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr Str body Raise Call NameLoad NameLoad Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Slice Num attr Expr Call AttributeLoad NameLoad attr NameLoad Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body Return Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Pass Return Dict Str Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign SubscriptStore NameLoad Index Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Return Str orelse If Call AttributeLoad NameLoad attr NameLoad Str body Return Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign TupleStore NameStore NameStore Call NameLoad Str Str Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore NameLoad If CompareNotEq NameLoad Str body For NameStore Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr If CompareEq NameLoad SubscriptLoad NameLoad Index Num body Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore NameLoad Break If NameLoad body If CompareIn NameLoad NameLoad body Return Str orelse If CompareIn NameLoad NameLoad body Return Str orelse If CompareIn NameLoad NameLoad body Return Str orelse If CompareIn NameLoad NameLoad body Return Str orelse Raise Call NameLoad BinOpMod Str NameLoad orelse Return Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Expr Call NameLoad Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Raise Call NameLoad Str decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd ListLoad NameLoad Call NameLoad NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str body Raise Call NameLoad BinOpAdd BinOpAdd NameLoad Str Call AttributeLoad SubscriptLoad NameLoad Slice Num attr Return TupleLoad NameLoad NameLoad decorator_list
N/A N/A 
Note: slurm configuration for debian::

    sudo apt-get install slurm-llnl
    sudo vi /etc/slurm-llnl/slurm.conf
    sudo mkdir /var/run/slurm-llnl
    sudo chmod slurm:slurm /var/run/slurm-llnl

Now put it in rc.d::

    sudo update-rc.d munge defaults
    sudo update-rc.d slurm-llnl defaults

Or run the following each time::

    sudo service munge start
    sudo service slurm-llnl start

 N/A os N/A subprocess N/A multiprocessing jobid get_jobid N/A store runjob N/A _ACTIVE N/A RUNNING COMPLETING N/A _INACTIVE N/A PENDING SUSPENDED N/A _ERROR N/A CANCELLED FAILED TIMEOUT NODE_FAIL N/A _COMPLETE N/A COMPLETED Scheduler N/A object N/A jobs N/A N/A self status N/A None N/A N/A 
        Return a list of jobs on the queue.
         N/A N/A output _ N/A _slurm_exec squeue -o %i %M %j N/A output N/A deactivate N/A N/A self jobid N/A N/A N/A N/A submit N/A N/A self request origin N/A N/A N/A 
        Put a command on batch queue, returning its job id.
         N/A jobid N/A get_jobid N/A N/A N/A store create jobid N/A N/A N/A store put jobid request request N/A service N/A N/A runjob build_command jobid request N/A num_workers N/A N/A multiprocessing cpu_count N/A jobdir N/A N/A store path jobid N/A script N/A N/A N/A os path join jobdir N/A J%s.sh jobid N/A commands N/A N/A srun -n 1 -K -o slurm-out.txt nice -n 19 %s & service N/A N/A create_batchfile script commands N/A N/A _out err N/A _slurm_exec sbatch -n N/A str num_workers -D jobdir script N/A N/A N/A N/A err startswith sbatch: Submitted batch job  N/A N/A N/A RuntimeError err N/A slurmid N/A N/A N/A err N/A 28 strip N/A N/A N/A store put jobid slurmid slurmid N/A jobid N/A results N/A N/A self id N/A N/A N/A N/A N/A N/A N/A runjob results id N/A N/A N/A KeyError N/A N/A N/A N/A status N/A N/A self status id N/A info N/A N/A self id N/A N/A N/A request N/A N/A store get id request N/A N/A request N/A id id N/A request N/A status N/A N/A self id N/A N/A N/A 
        Returns the follow states:
        PENDING   --  Job is waiting to be processed
        ACTIVE    --  Job is busy being processed through the queue
        COMPLETE  --  Job has completed successfully
        ERROR     --  Job has either been canceled by the user or an
                      error has been raised
         N/A jobdir N/A N/A store path id N/A N/A N/A N/A N/A os path exists jobdir N/A N/A UNKNOWN N/A N/A N/A N/A store contains id results N/A N/A COMPLETE N/A slurmid N/A N/A store get id slurmid N/A N/A out _ N/A _slurm_exec squeue -h --format=%i %T N/A out N/A N/A out strip N/A state N/A inqueue False N/A N/A out N/A N/A line N/A N/A out split N/A N/A line N/A N/A line split N/A N/A slurmid N/A line N/A 0 N/A N/A state N/A line N/A 1 N/A inqueue True N/A N/A inqueue N/A N/A N/A state _ACTIVE N/A N/A ACTIVE N/A N/A N/A state _INACTIVE N/A N/A PENDING N/A N/A N/A state _COMPLETE N/A N/A COMPLETE N/A N/A N/A state _ERROR N/A N/A ERROR N/A N/A N/A RuntimeError N/A unexpected state from squeue: %s state N/A N/A ERROR N/A cancel N/A N/A self jobid N/A N/A N/A slurmid N/A N/A store get jobid slurmid N/A N/A _slurm_exec scancel slurmid N/A delete N/A N/A self jobid N/A N/A N/A N/A N/A self cancel jobid N/A N/A N/A store destroy jobid N/A nextjob N/A N/A self queue N/A N/A N/A N/A NotImplementedError SLURM queues do not support work sharing N/A postjob N/A N/A self id results N/A N/A N/A N/A NotImplementedError SLURM queues do not support work sharing N/A N/A create_batchfile N/A N/A script commands N/A N/A N/A 
    Create the batchfile to run the job.
     N/A fid N/A open script w N/A N/A N/A fid write #!/bin/sh
 N/A N/A N/A fid write N/A N/A join commands N/A N/A N/A fid write 
wait
 N/A N/A N/A fid close N/A script N/A _slurm_exec N/A N/A cmd N/A args N/A N/A 
    Run a slurm command, capturing any errors.
     N/A process N/A N/A subprocess Popen N/A N/A cmd N/A list args stdout N/A subprocess PIPE stderr N/A subprocess PIPE N/A N/A out err N/A N/A process communicate N/A N/A N/A err startswith N/A cmd : error:  N/A N/A N/A RuntimeError N/A N/A cmd :  N/A N/A N/A err N/A 15 strip N/A N/A out err N/A