This is an automated email from the ASF dual-hosted git repository.
potiuk 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 60848a6 Fix failing static checks in main (#17424)
60848a6 is described below
commit 60848a6ea78e29f20004a5e9f177335e6b99c706
Author: Jarek Potiuk <[email protected]>
AuthorDate: Wed Aug 4 23:33:29 2021 +0200
Fix failing static checks in main (#17424)
---
airflow/utils/log/file_task_handler.py | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/airflow/utils/log/file_task_handler.py
b/airflow/utils/log/file_task_handler.py
index 56b9d23..2387633 100644
--- a/airflow/utils/log/file_task_handler.py
+++ b/airflow/utils/log/file_task_handler.py
@@ -187,10 +187,14 @@ class FileTaskHandler(logging.Handler):
response.encoding = "utf-8"
if response.status_code == 403:
- log += "*** !!!! Please make sure that all your webservers
and workers have" \
- " the same 'secret_key' configured in 'webserver'
section !!!!!\n***"
- log += "*** See more at
https://airflow.apache.org/docs/apache-airflow/" \
- "stable/configurations-ref.html#secret-key\n***"
+ log += (
+ "*** !!!! Please make sure that all your Airflow
components (e.g. schedulers, webservers and workers) have"
+ " the same 'secret_key' configured in 'webserver'
section !!!!!\n***"
+ )
+ log += (
+ "*** See more at
https://airflow.apache.org/docs/apache-airflow/"
+ "stable/configurations-ref.html#secret-key\n***"
+ )
# Check if the resource was properly fetched
response.raise_for_status()