class Process(Struct):
    cmdline = Required(String)
    name = Required(String)

    # This is currently unused but reserved for future use by Thermos.
    resources = Resources

    # optionals
    max_failures = Default(Integer, 1)  # maximum number of failed process runs
    # before process is failed.
    daemon = Default(Boolean, False)
    ephemeral = Default(Boolean, False)
    min_duration = Default(Integer, 5)  # integer seconds
    final = Default(Boolean,
                    False)  # if this process should be a finalizing process
Example #2
0
class CommandRunnerTrait(Cluster.Trait):
    slave_root = Required(String)  # noqa
    slave_run_directory = Required(String)  # noqa
class Access(Struct):
    scheme = Required(String)
    credential = Required(String)
    permissions = Required(Permissions)
class Auth(Struct):
    scheme = Required(String)
    credential = Required(String)
Example #5
0
 class Bar(Struct):
     bar = Required(String)
Example #6
0
 class Foo(Struct):
     foo = Required(String)
Example #7
0
class NameTrait(Cluster.Trait):
    name = Required(String)  # noqa
Example #8
0
class Resources(Struct):
    cpu = Required(Float)
    ram = Required(Integer)
    disk = Required(Integer)
    gpu = Default(Integer, 0)
class Resources(Struct):
    cpu = Required(Float)
    ram = Required(Integer)
    disk = Required(Integer)
Example #10
0
 class AudubonTrait(Cluster.Trait):
     master_role = String  # noqa
     slave_role = Default(String, 'slave')  # noqa
     version = Required(Integer)  # noqa
Example #11
0
class Logger(Struct):
    mode = Required(LoggerMode)
    rotate = RotatePolicy