[ 
https://issues.apache.org/jira/browse/AIRFLOW-3365?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16691715#comment-16691715
 ] 

ASF GitHub Bot commented on AIRFLOW-3365:
-----------------------------------------

villasv opened a new pull request #4211: AIRFLOW-3365 and AIRFLOW-3366
URL: https://github.com/apache/incubator-airflow/pull/4211
 
 
   ### Jira
   
   - [x] My PR addresses the following [Airflow 
Jira](https://issues.apache.org/jira/browse/AIRFLOW/) issues and references 
them in the PR title. For example, "\[AIRFLOW-XXX\] My Airflow PR"
     - https://issues.apache.org/jira/browse/AIRFLOW-3365
     - https://issues.apache.org/jira/browse/AIRFLOW-3366
   
   ### Description
   
   A small change on how the `visibility_timeout` option is enforced and a 
significant change on how the `getsection()` works, making it look for 
environment variables as well. This allows the use of environment variables to 
override `celery_broker_transport_options` and possible other options in 
sections that are configured as a group.
   
   ### Tests
   
   - [ ] My PR adds the following unit tests __OR__ does not need testing for 
this extremely good reason:
   
   ### Commits
   
   - [X] My commits all reference Jira issues in their subject lines, and I 
have squashed multiple commits if they address the same issue. In addition, my 
commits follow the guidelines from "[How to write a good git commit 
message](http://chris.beams.io/posts/git-commit/)":
     1. Subject is separated from body by a blank line
     1. Subject is limited to 50 characters (not including Jira issue reference)
     1. Subject does not end with a period
     1. Subject uses the imperative mood ("add", not "adding")
     1. Body wraps at 72 characters
     1. Body explains "what" and "why", not "how"
   
   ### Documentation
   
   - [X] In case of new functionality, my PR adds documentation that describes 
how to use it.
     - When adding new operators/hooks/sensors, the autoclass documentation 
generation needs to be added.
   
   ### Code Quality
   
   - [ ] Passes `flake8`
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Missing visibility_timeout will overwrite celery broker transport options
> -------------------------------------------------------------------------
>
>                 Key: AIRFLOW-3365
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-3365
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: configuration
>    Affects Versions: 1.10.0
>            Reporter: Victor Villas Bôas Chaves
>            Priority: Major
>
> If you specify the region in your airflow.cfg like this:
> {{[celery_broker_transport_options] }}
> {{region = us-east-2 }}
> it gets ignored.
> This is ignored because Airflow checks to see if the {{visibility_timeout}} 
> parameter is set in the transport options and, if it's not set, replaces the 
> transport options completely with {{{'visibility_timeout': 21600}}} (at 
> [https://github.com/apache/incubator-airflow/blob/master/airflow/config_templates/default_celery.py#L40]).
> If you add {{visibility_timeout}}, the region is correctly set:
> {{[celery_broker_transport_options] }}
> {{region = us-east-2 }}
> {{visibility_timeout = 21600 }}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to