ashb commented on a change in pull request #17719:
URL: https://github.com/apache/airflow/pull/17719#discussion_r692775729
##########
File path: airflow/models/skipmixin.py
##########
@@ -91,7 +79,28 @@ def skip(
if not tasks:
return
- self._set_state_to_skipped(dag_run, execution_date, tasks, session)
+ if execution_date and not dag_run:
+ from airflow.models.dagrun import DagRun
+
+ warnings.warn(
+ "Passing an execution_date to `skip()` is deprecated in favour
of passing a dag_run",
+ DeprecationWarning,
+ stacklevel=2,
+ )
Review comment:
2a7f8a411
--
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]