You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ep...@apache.org on 2022/03/22 17:51:43 UTC
[airflow] 28/30: adding `on_execute_callback` to callbacks docs (#22362)
This is an automated email from the ASF dual-hosted git repository.
ephraimanierobi pushed a commit to branch v2-2-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
commit 11c89bd9ccb34fe6f964265b43a1a0f7aa7c29f9
Author: aspain <ad...@gmail.com>
AuthorDate: Mon Mar 21 16:38:25 2022 -0400
adding `on_execute_callback` to callbacks docs (#22362)
* adding on_execute_callback
`on_execute_callback` is not listed but is an available callback to use. Could not find a docs page to link the way that the rest of them have.
* Update docs/apache-airflow/logging-monitoring/callbacks.rst
Co-authored-by: Josh Fell <48...@users.noreply.github.com>
* Update docs/apache-airflow/logging-monitoring/callbacks.rst
Co-authored-by: Josh Fell <48...@users.noreply.github.com>
Co-authored-by: eladkal <45...@users.noreply.github.com>
(cherry picked from commit 179c5b67e9c838f2f6df2b2b9a4451bfa09db42d)
---
docs/apache-airflow/logging-monitoring/callbacks.rst | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/docs/apache-airflow/logging-monitoring/callbacks.rst b/docs/apache-airflow/logging-monitoring/callbacks.rst
index 15bbacb..4b1b754 100644
--- a/docs/apache-airflow/logging-monitoring/callbacks.rst
+++ b/docs/apache-airflow/logging-monitoring/callbacks.rst
@@ -32,7 +32,7 @@ For example, you may wish to alert when certain tasks have failed, or have the l
Callback Types
--------------
-There are four types of task events that can trigger a callback:
+There are five types of task events that can trigger a callback:
=========================================== ================================================================
Name Description
@@ -41,6 +41,7 @@ Name Description
``on_failure_callback`` Invoked when the task :ref:`fails <concepts:task-instances>`
``sla_miss_callback`` Invoked when a task misses its defined :ref:`SLA <concepts:slas>`
``on_retry_callback`` Invoked when the task is :ref:`up for retry <concepts:task-instances>`
+``on_execute_callback`` Invoked right before the task begins executing.
=========================================== ================================================================