aurora-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zameer Manji (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AURORA-1805) Enhance `Process` object to allow easier access to environment variables
Date Wed, 26 Oct 2016 23:29:58 GMT

     [ https://issues.apache.org/jira/browse/AURORA-1805?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Zameer Manji updated AURORA-1805:
---------------------------------
    Summary: Enhance `Process` object to allow easier access to environment variables  (was:
Enhance `Process` object to allow easier access)

> Enhance `Process` object to allow easier access to environment variables
> ------------------------------------------------------------------------
>
>                 Key: AURORA-1805
>                 URL: https://issues.apache.org/jira/browse/AURORA-1805
>             Project: Aurora
>          Issue Type: Task
>          Components: Thermos
>            Reporter: Zameer Manji
>
> The thermos DSL:
> {noformat}
> 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)
> {noformat}
> If we can add a new field:
> {noformat}
> environment = Default(Map(String, String), {})
> {noformat}
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message