-
Notifications
You must be signed in to change notification settings - Fork 775
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?
Changes from all commits
6b6c0b3
ed8a000
0ef1087
ec43f14
a84f463
ffbf68a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -672,6 +672,22 @@ def _register_system_metadata(self, run_id, step_name, task_id, attempt): | |
if metadata: | ||
self.register_metadata(run_id, step_name, task_id, metadata) | ||
|
||
@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 | ||
|
||
Comment on lines
+675
to
+690
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 commentThe reason will be displayed to describe this comment to others. Learn more. also, did you have an implementation of this for |
||
@staticmethod | ||
def _apply_filter(elts, filters): | ||
if filters is None: | ||
|
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?