woom.hosts.Host

woom.hosts.Host#

class woom.hosts.Host(name, config)[source]#
__init__(name, config)[source]#

Initialize a host

Parameters:
  • name (str) – Host name

  • config (configobj.Section) – Host configuration section

Attributes

config

Dict configuration of this host as loaded from file hosts.cfg (dict)

module_setup

Command to declare the module command (str)

name

Host name as defined in the configuration (str)

queues

Correspondance between generic and real queue names (dict)

scheduler

Scheduler like background, pbsproc or slurm

Methods

get_env(name)

Get a EnvConfig instance from a env config name

get_jobmanager()

Get a job manager instance

get_params()

Get a context dict for formatting task commandlines with jinja

get_queue(name)

Get a queue real name from its generic name