Details
-
Task
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
The thermos DSL:
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 # that should always be run after regular processes logger = Default(Logger, Empty)
If we can add a new field:
environment = Default(Map(String, String), {})
It will make it much easier to add environment variables.
Right now the solution is to prefix environment variables to cmdline which can get janky and frustrating with the string interpolation.