You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/10/04 12:59:27 UTC
[GitHub] [airflow] alexInhert commented on a change in pull request #18610: fixed default value of execution_timeout in base operator
alexInhert commented on a change in pull request #18610:
URL: https://github.com/apache/airflow/pull/18610#discussion_r721339788
##########
File path: airflow/models/baseoperator.py
##########
@@ -502,7 +502,7 @@ def __init__(
pool: Optional[str] = None,
pool_slots: int = 1,
sla: Optional[timedelta] = None,
- execution_timeout: Optional[timedelta] = None,
+ execution_timeout: Optional[timedelta] = conf.gettimedelta('core', 'default_ execution_timeout', fallback=None),
Review comment:
execution_timeout accept timedelta object. You are reading value from a configuration file you need to convert it into the object.
--
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.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org