You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "yelbom (via GitHub)" <gi...@apache.org> on 2023/04/11 23:05:31 UTC
[GitHub] [airflow] yelbom commented on a diff in pull request #29513: AIP-44 Migrate TaskInstance.check_and_change_state_before_execution to Internal API
yelbom commented on code in PR #29513:
URL: https://github.com/apache/airflow/pull/29513#discussion_r1163411037
##########
airflow/models/taskinstance.py:
##########
@@ -1207,9 +1208,11 @@ def get_dagrun(self, session: Session = NEW_SESSION) -> DagRun:
return dr
+ @staticmethod
+ @internal_api_call
@provide_session
def check_and_change_state_before_execution(
- self,
+ ti: TaskInstance,
Review Comment:
Absolutely brilliant. And I mean that.
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org