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/05/02 12:26:18 UTC

[GitHub] [airflow] eladkal commented on issue #9046: TimeDeltaSensor and schedule_interval="@once" leads to crash

eladkal commented on issue #9046:
URL: https://github.com/apache/airflow/issues/9046#issuecomment-830801831


   As explained it doesn't make sense to use `@once` with TimeDeltaSensor. Note that the sensor calculates `execution_date + schedule_interval` when you set `schedule_interval="@once"` there is no interval (so it's None) which is exactly what the error message says: 
   `TypeError: unsupported operand type(s) for +=: 'NoneType' and 'datetime.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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org