PythonCallTaskMatcher¶
-
class
ditto.matchers.
PythonCallTaskMatcher
(find_callable, nested_search=True)[source]¶ Bases:
ditto.api.TaskMatcher
Matches a
PythonOperator
orBranchPythonOperator
if their python_callable’s are making the matching method calls or are the same as the method calls to match against.- Parameters
-
does_match
(task)[source]¶ Uses the python inspect module to get the source code for a given python method if nested_search is enabled, otherwise just matches on the python_callable of the
PythonOperator
orBranchPythonOperator
- Parameters
task¶ (
BaseOperator
) – the operator to match against- Return type
bool
- Returns
whether or not it matched