yuqian90 commented on a change in pull request #7143: [AIRFLOW-6527] Make 
send_task_to_executor timeout configurable
URL: https://github.com/apache/airflow/pull/7143#discussion_r370982982
 
 

 ##########
 File path: airflow/executors/celery_executor.py
 ##########
 @@ -41,6 +41,8 @@
 
 CELERY_SEND_ERR_MSG_HEADER = 'Error sending Celery task'
 
+OPERATION_TIMEOUT = conf.getint('celery', 'operation_timeout')
 
 Review comment:
   Thanks, @kaxil. Done. I added a very boring test like this. It'll detect 
mistakes such as the example you showed. Pls let me know if you are looking for 
something better.
   
   ```python
   def test_operation_timeout_config():
       assert celery_executor.OPERATION_TIMEOUT == 2
   ```

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to