Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dagobah context variables #111

Open
rclough opened this issue Aug 8, 2014 · 1 comment
Open

Dagobah context variables #111

rclough opened this issue Aug 8, 2014 · 1 comment

Comments

@rclough
Copy link
Collaborator

rclough commented Aug 8, 2014

Have dagobah allow tasks to use some variables specific to dagobah such as:

  1. Unique run ID for a job
  2. Time start

Not sure if theres anything else but just an idea. Could be manually added to the map generated from os.environ (see the patch I just submitted) so tasks can just access like $DAGOBAH_JOB_ID or $DAGOBAH_TIME_START for example.

Pitfalls: Cannot pass environment variables to remote machines. Could be implemented as string replacements on the task, but then we have to worry about escaping keywords if needed. (I guess that wouldnt be that bad if you use something like $dagobah_run_id)

@thieman
Copy link
Owner

thieman commented Aug 9, 2014

Seems reasonable. A lot of tools like Jenkins do something similar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants