You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ur...@apache.org on 2022/08/09 03:44:45 UTC
[airflow] branch main updated: Add note on task_instance_mutation_hook usage (#25607)
This is an automated email from the ASF dual-hosted git repository.
uranusjr pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 8b967037c2 Add note on task_instance_mutation_hook usage (#25607)
8b967037c2 is described below
commit 8b967037c23b59fc726f9199fb93ebc66a1bcd64
Author: mohittalele <mo...@gmail.com>
AuthorDate: Tue Aug 9 05:44:35 2022 +0200
Add note on task_instance_mutation_hook usage (#25607)
Co-authored-by: Tzu-ping Chung <ur...@gmail.com>
---
docs/apache-airflow/concepts/cluster-policies.rst | 2 ++
1 file changed, 2 insertions(+)
diff --git a/docs/apache-airflow/concepts/cluster-policies.rst b/docs/apache-airflow/concepts/cluster-policies.rst
index 8bec4db4c3..0f5f978a64 100644
--- a/docs/apache-airflow/concepts/cluster-policies.rst
+++ b/docs/apache-airflow/concepts/cluster-policies.rst
@@ -94,3 +94,5 @@ Here's an example of re-routing tasks that are on their second (or greater) retr
:language: python
:start-after: [START example_task_mutation_hook]
:end-before: [END example_task_mutation_hook]
+
+Note that since priority weight is determined dynamically using weight rules, you cannot alter the ``priority_weight`` of a task instance within the mutation hook.