You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "eladkal (via GitHub)" <gi...@apache.org> on 2024/05/17 07:51:55 UTC
Re: [PR] Starts execution directly from triggerer without going to worker [airflow]
eladkal commented on code in PR #38674:
URL: https://github.com/apache/airflow/pull/38674#discussion_r1604504585
##########
docs/apache-airflow/authoring-and-scheduling/deferring.rst:
##########
@@ -141,6 +141,60 @@ The ``self.defer`` call raises the ``TaskDeferred`` exception, so it can work an
``execution_timeout`` on operators is determined from the *total runtime*, not individual executions between deferrals. This means that if ``execution_timeout`` is set, an operator can fail while it's deferred or while it's running after a deferral, even if it's only been resumed for a few seconds.
+Triggering Deferral from Start
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+If you want to defer your task directly to the triggerer without going into the worker, you can add the class level attributes ``start_trigger`` and ``_next_method`` to your deferrable operator.
Review Comment:
@Lee-W probably we should add a note here that this feature is available starting Airflow 2.10 ?
Similar to https://github.com/apache/airflow/blob/54d01809f9389680b0ae358ee72bc162503dce3e/docs/apache-airflow/administration-and-deployment/logging-monitoring/logging-tasks.rst#L85-L88
--
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