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 2022/05/14 16:28:20 UTC

[GitHub] [airflow] uranusjr commented on a diff in pull request #23655: Ensure execution_timeout as timedelta

uranusjr commented on code in PR #23655:
URL: https://github.com/apache/airflow/pull/23655#discussion_r873049437


##########
airflow/models/baseoperator.py:
##########
@@ -767,7 +767,13 @@ def __init__(
         self.email = email
         self.email_on_retry = email_on_retry
         self.email_on_failure = email_on_failure
+
+        if execution_timeout and not isinstance(execution_timeout, timedelta):

Review Comment:
   ```suggestion
           if execution_timeout is not None and not isinstance(execution_timeout, timedelta):
   ```



-- 
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