PythonCallTaskMatcher¶
-
class
ditto.matchers.PythonCallTaskMatcher(find_callable, nested_search=True)[source]¶ Bases:
ditto.api.TaskMatcherMatches a
PythonOperatororBranchPythonOperatorif 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
PythonOperatororBranchPythonOperator- Parameters
task¶ (
BaseOperator) – the operator to match against- Return type
bool- Returns
whether or not it matched