-
Notifications
You must be signed in to change notification settings - Fork 774
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
Add static and runtime dag info, API to fetch ancestor tasks #2124
base: master
Are you sure you want to change the base?
Conversation
48c771d
to
ec43f14
Compare
@classmethod | ||
def _filter_tasks_by_metadata( | ||
cls, flow_id, run_id, query_step, field_name, field_value | ||
): | ||
raise NotImplementedError() | ||
|
||
@classmethod | ||
def filter_tasks_by_metadata( | ||
cls, flow_id, run_id, query_step, field_name, field_value | ||
): | ||
# TODO: Do we need to do anything wrt to task attempt? | ||
task_ids = cls._filter_tasks_by_metadata( | ||
flow_id, run_id, query_step, field_name, field_value | ||
) | ||
return task_ids | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there a need for the private method, or could this simply be contained in the public-facing one? right now its not doing anything before calling the private one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also, did you have an implementation of this for service.py
yet?
def filter_tasks_by_metadata( | ||
cls, flow_id, run_id, query_step, field_name, field_value | ||
): | ||
# TODO: Do we need to do anything wrt to task attempt? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably not, as the ancestors for task attempts should be identical, right? What about the immediate_siblings
though, will they include or exclude attempts of the same task?
Add runtime DAG info so that we can query the ancestor and successor tasks for a given task easily.
Usage
To get ancestors, progenies, and siblings, use the following API: