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

dag_tools: get_children and get_parents should respect valid_if_or #6

Open
adgaudio opened this issue Oct 6, 2014 · 0 comments
Open

Comments

@adgaudio
Copy link
Contributor

adgaudio commented Oct 6, 2014

if valid_if_or is set on an application, then get_children should by default only show children where the child job_id passes the valid_if_or criteria.

{
"app1": {"job_id_template": "{client_id}"}, ...},

"app2": {"valid_if_or": {"client_id": [1,2,3]},
              "job_id_template": "{client_id}",
              "depends_on": {"app_name": ["app1"], ...}
}

dag_tools.get_children("app1", "4")  # --> should return []
dag_tools.get_children("app1", 3)  # --> should return ("app2", 3)
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

1 participant