Esempio n. 1
0
SPEC = {
    'process pool size':
    vdr(vtype='integer', default=4),
    'temporary directory':
    vdr(vtype='string'),
    'state dump rolling archive length':
    vdr(vtype='integer', default=10),
    'disable interactive command prompts':
    vdr(vtype='boolean', default=True),
    'enable run directory housekeeping':
    vdr(vtype='boolean', default=False),
    'run directory rolling archive length':
    vdr(vtype='integer', default=2),
    'task host select command timeout':
    vdr(vtype='interval', default=DurationFloat(10)),
    'task messaging': {
        'retry interval': vdr(vtype='interval', default=DurationFloat(5)),
        'maximum number of tries': vdr(vtype='integer', default=7),
        'connection timeout': vdr(vtype='interval', default=DurationFloat(30)),
    },
    'cylc': {
        'UTC mode':
        vdr(vtype='boolean', default=False),
        'health check interval':
        vdr(vtype='interval', default=DurationFloat(600)),
        'task event mail interval':
        vdr(vtype='interval', default=DurationFloat(300)),
        'events': {
            'handlers': vdr(vtype='string_list', default=[]),
            'handler events': vdr(vtype='string_list', default=[]),
Esempio n. 2
0
 'temporary directory':
 vdr(vtype='string'),
 'state dump rolling archive length':
 vdr(vtype='integer', vmin=1, default=10),
 'disable interactive command prompts':
 vdr(vtype='boolean', default=True),
 'enable run directory housekeeping':
 vdr(vtype='boolean', default=False),
 'run directory rolling archive length':
 vdr(vtype='integer', vmin=0, default=2),
 'submission polling intervals':
 vdr(vtype='interval_minutes_list', default=[]),
 'execution polling intervals':
 vdr(vtype='interval_minutes_list', default=[]),
 'task host select command timeout':
 vdr(vtype='interval_seconds', default=DurationFloat(10)),
 'task messaging': {
     'retry interval':
     vdr(vtype='interval_seconds', default=DurationFloat(5)),
     'maximum number of tries':
     vdr(vtype='integer', vmin=1, default=7),
     'connection timeout':
     vdr(vtype='interval_seconds', default=DurationFloat(30)),
 },
 'cylc': {
     'UTC mode': vdr(vtype='boolean', default=False),
     'events': {
         'handlers': vdr(vtype='string_list', default=[]),
         'handler events': vdr(vtype='string_list', default=[]),
         'mail events': vdr(vtype='string_list', default=[]),
         'mail from': vdr(vtype='string'),
Esempio n. 3
0
from cylc.network import PRIVILEGE_LEVELS, PRIV_STATE_TOTALS, PRIV_SHUTDOWN

coercers['interval'] = coerce_interval
coercers['interval_list'] = coerce_interval_list

SPEC = {
    'process pool size': vdr(vtype='integer', default=4),
    'temporary directory': vdr(vtype='string'),
    'state dump rolling archive length': vdr(
        vtype='integer', default=10),
    'disable interactive command prompts': vdr(vtype='boolean', default=True),
    'enable run directory housekeeping': vdr(vtype='boolean', default=False),
    'run directory rolling archive length': vdr(
        vtype='integer', default=2),
    'task host select command timeout': vdr(
        vtype='interval', default=DurationFloat(10)),
    'task messaging': {
        'retry interval': vdr(
            vtype='interval', default=DurationFloat(5)),
        'maximum number of tries': vdr(vtype='integer', default=7),
        'connection timeout': vdr(
            vtype='interval', default=DurationFloat(30)),
    },

    'cylc': {
        'UTC mode': vdr(vtype='boolean', default=False),
        'health check interval': vdr(
            vtype='interval', default=DurationFloat(600)),
        'task event mail interval': vdr(
            vtype='interval', default=DurationFloat(300)),
        'events': {
Esempio n. 4
0
coercers['interval'] = coerce_interval
SITE_FILE = os.path.join(os.environ['CYLC_DIR'], 'conf', 'gcylcrc',
                         'themes.rc')
USER_FILE = os.path.join(os.environ['HOME'], '.cylc', 'gcylc.rc')
SPEC = {
    'dot icon size':
    vdr(vtype='string',
        default="medium",
        options=["small", "medium", "large", "extra large"]),
    'initial side-by-side views':
    vdr(vtype='boolean', default=False),
    'initial views':
    vdr(vtype='string_list', default=["text"]),
    'maximum update interval':
    vdr(vtype='interval', default=DurationFloat(15)),
    'sort by definition order':
    vdr(vtype='boolean', default=True),
    'sort column':
    vdr(vtype='string',
        default='none',
        options=[
            heading for heading in ControlTree.headings if heading is not None
        ] + ['none']),
    'sort column ascending':
    vdr(vtype='boolean', default=True),
    'task filter highlight color':
    vdr(vtype='string', default='PowderBlue'),
    'task states to filter out':
    vdr(vtype='string_list', default=[TASK_STATUS_RUNAHEAD]),
    'themes': {
Esempio n. 5
0
File: suite.py Progetto: jontyq/cylc
     'mail events': vdr(vtype='string_list'),
     'mail from': vdr(vtype='string'),
     'mail smtp': vdr(vtype='string'),
     'mail to': vdr(vtype='string'),
     'mail footer': vdr(vtype='string'),
 },
 'reference test': {
     'suite shutdown event handler': vdr(
         vtype='string', default='cylc hook check-triggering'),
     'required run mode': vdr(
         vtype='string',
         options=['live', 'simulation', 'dummy-local', 'dummy', '']),
     'allow task failures': vdr(vtype='boolean', default=False),
     'expected task failures': vdr(vtype='string_list', default=[]),
     'live mode suite timeout': vdr(
         vtype='interval', default=DurationFloat(60)),
     'dummy mode suite timeout': vdr(
         vtype='interval', default=DurationFloat(60)),
     'dummy-local mode suite timeout': vdr(
         vtype='interval', default=DurationFloat(60)),
     'simulation mode suite timeout': vdr(
         vtype='interval', default=DurationFloat(60)),
 },
 'authentication': {
     # Allow owners to grant public shutdown rights at the most, not
     # full control.
     'public': vdr(
         vtype='string',
         options=PRIVILEGE_LEVELS[
             :PRIVILEGE_LEVELS.index(PRIV_SHUTDOWN) + 1],
         default=GLOBAL_CFG.get(['authentication', 'public']))
Esempio n. 6
0
         'disable suite event hooks': vdr(vtype='boolean', default=True),
     },
     'dummy mode': {
         'disable suite event hooks': vdr(vtype='boolean', default=True),
     },
     'reference test': {
         'suite shutdown event handler':
         vdr(vtype='string', default='cylc hook check-triggering'),
         'required run mode':
         vdr(vtype='string', options=['live', 'simulation', 'dummy', '']),
         'allow task failures':
         vdr(vtype='boolean', default=False),
         'expected task failures':
         vdr(vtype='string_list', default=[]),
         'live mode suite timeout':
         vdr(vtype='interval_minutes', default=DurationFloat(60)),
         'dummy mode suite timeout':
         vdr(vtype='interval_minutes', default=DurationFloat(60)),
         'simulation mode suite timeout':
         vdr(vtype='interval_minutes', default=DurationFloat(60)),
     },
     'authentication': {
         # Allow owners to grant public shutdown rights at the most, not
         # full control.
         'public':
         vdr(vtype='string',
             options=PRIVILEGE_LEVELS[:PRIVILEGE_LEVELS.index('shutdown') +
                                      1],
             default=GLOBAL_CFG.get(['authentication', 'public']))
     },
 },
Esempio n. 7
0
from parsec.upgrade import upgrader, converter
from cylc.hostuserutil import is_remote_user
from cylc.envvar import expandvars
from cylc.mkdir_p import mkdir_p
import cylc.flags
from cylc.cfgspec.utils import (
    coerce_interval, coerce_interval_list, DurationFloat)
from cylc.network import PRIVILEGE_LEVELS, PRIV_STATE_TOTALS, PRIV_SHUTDOWN
from cylc.version import CYLC_VERSION

coercers['interval'] = coerce_interval
coercers['interval_list'] = coerce_interval_list

SPEC = {
    'process pool size': vdr(vtype='integer', default=4),
    'process pool timeout': vdr(vtype='interval', default=DurationFloat(600)),
    'temporary directory': vdr(vtype='string'),
    'state dump rolling archive length': vdr(
        vtype='integer', default=10),
    'disable interactive command prompts': vdr(vtype='boolean', default=True),
    'enable run directory housekeeping': vdr(vtype='boolean', default=False),
    'run directory rolling archive length': vdr(
        vtype='integer', default=2),
    'task host select command timeout': vdr(
        vtype='interval', default=DurationFloat(10)),
    'task messaging': {
        'retry interval': vdr(
            vtype='interval', default=DurationFloat(5)),
        'maximum number of tries': vdr(vtype='integer', default=7),
        'connection timeout': vdr(
            vtype='interval', default=DurationFloat(30)),