uranusjr commented on a change in pull request #21798:
URL: https://github.com/apache/airflow/pull/21798#discussion_r815943384
##########
File path: airflow/operators/trigger_dagrun.py
##########
@@ -43,14 +48,27 @@ class TriggerDagRunLink(BaseOperatorLink):
name = 'Triggered DAG'
- def get_link(self, operator, dttm):
+ def get_link(
+ self,
+ operator: "AbstractOperator",
+ dttm: Optional[datetime.datetime] = None,
+ *,
+ ti_key: Optional["TaskInstanceKey"] = None,
+ ) -> str:
Review comment:
Continuing the backward compatibility topic, this particular class may
not need to implement the compatibility signature? If we don’t support getting
the link through the Python API, this one can only be called by Airflow core
and only with the new API. (The same does not apply for operators in providers,
of course.)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]