[
https://issues.apache.org/jira/browse/AIRFLOW-4120?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16804800#comment-16804800
]
ASF GitHub Bot commented on AIRFLOW-4120:
-----------------------------------------
Fokko commented on pull request #4939: [AIRFLOW-4120] Modify
SchedulerJob.manage_slas to respect zero timedelta SLAs
URL: https://github.com/apache/airflow/pull/4939
----------------------------------------------------------------
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]
> SLA of zero timedelta is not respected
> --------------------------------------
>
> Key: AIRFLOW-4120
> URL: https://issues.apache.org/jira/browse/AIRFLOW-4120
> Project: Apache Airflow
> Issue Type: Bug
> Components: models
> Reporter: Markan Patel
> Assignee: Markan Patel
> Priority: Minor
>
> When passing a zero timedelta SLA to any operator, it is not properly
> respected if the task misses it.
>
> {code:python}
> BaseOperator(
> sla=timedelta(), # or timedelta(0)
> **kwargs)
> {code}
> The cause can be narrowed down to the fact that
> {code:python}
> bool(timedelta()) == False
> {code}
> So any code that checks if the SLA parameter is falsy should be updated
> accordingly.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)