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 2020/09/24 12:37:49 UTC
[GitHub] [airflow] razius opened a new issue #11123: TypeError: unsupported operand type(s) for +: 'NoneType' and 'datetime.timedelta
razius opened a new issue #11123:
URL: https://github.com/apache/airflow/issues/11123
From the scheduler logs:
```
Traceback (most recent call last):
File "/opt/airflow/airflow/jobs/scheduler_job.py", line 1606, in _execute
self.adopt_or_reset_orphaned_tasks()
File "/opt/airflow/airflow/utils/session.py", line 65, in wrapper
return func(*args, **kwargs)
File "/opt/airflow/airflow/jobs/scheduler_job.py", line 1810, in adopt_or_reset_orphaned_tasks
to_reset = self.executor.try_adopt_task_instances(tis_to_reset_or_adopt)
File "/opt/airflow/airflow/executors/celery_executor.py", line 376, in try_adopt_task_instances
self.adopted_task_timeouts[ti.key] = ti.queued_dttm + self.task_adoption_timeout
TypeError: unsupported operand type(s) for +: 'NoneType' and 'datetime.timedelta'
[2020-09-24 12:13:16,137] {dag_processing.py:521} WARNING - Ending without manager process.
[2020-09-24 12:13:16,138] {scheduler_job.py:1637} INFO - Exited execute loop
```
Looks like a problem introduced by 59dad1a4ea6f3ba39d7be8c46ee45ea7cb0dd1f9, I assumed it's a problem with data created before that commit and a missing migration so I did the following for fix it:
```
airflow=> DELETE FROM task_instance WHERE queued_dttm IS NULL and state = 'scheduled';
```
----------------------------------------------------------------
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
[GitHub] [airflow] ashb commented on issue #11123: TypeError: unsupported operand type(s) for +: 'NoneType' and 'datetime.timedelta
Posted by GitBox <gi...@apache.org>.
ashb commented on issue #11123:
URL: https://github.com/apache/airflow/issues/11123#issuecomment-698337671
What version were you upgrading from? Have you been running master for long?
----------------------------------------------------------------
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
[GitHub] [airflow] kaxil commented on issue #11123: TypeError: unsupported operand type(s) for +: 'NoneType' and 'datetime.timedelta
Posted by GitBox <gi...@apache.org>.
kaxil commented on issue #11123:
URL: https://github.com/apache/airflow/issues/11123#issuecomment-698322794
Can you give us the steps to reproduce it, we can definitely take care of the condition but just want to make sure if this is reproducible.
----------------------------------------------------------------
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
[GitHub] [airflow] turbaszek commented on issue #11123: TypeError: unsupported operand type(s) for +: 'NoneType' and 'datetime.timedelta
Posted by GitBox <gi...@apache.org>.
turbaszek commented on issue #11123:
URL: https://github.com/apache/airflow/issues/11123#issuecomment-698317832
@ashb @kaxil what do you think?
----------------------------------------------------------------
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
[GitHub] [airflow] ashb commented on issue #11123: TypeError: unsupported operand type(s) for +: 'NoneType' and 'datetime.timedelta
Posted by GitBox <gi...@apache.org>.
ashb commented on issue #11123:
URL: https://github.com/apache/airflow/issues/11123#issuecomment-730000966
Closing -- if you can provide us reproduction steps please feel free to reopen this issue! Thanks.
----------------------------------------------------------------
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
[GitHub] [airflow] ashb closed issue #11123: TypeError: unsupported operand type(s) for +: 'NoneType' and 'datetime.timedelta
Posted by GitBox <gi...@apache.org>.
ashb closed issue #11123:
URL: https://github.com/apache/airflow/issues/11123
----------------------------------------------------------------
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
[GitHub] [airflow] boring-cyborg[bot] commented on issue #11123: TypeError: unsupported operand type(s) for +: 'NoneType' and 'datetime.timedelta
Posted by GitBox <gi...@apache.org>.
boring-cyborg[bot] commented on issue #11123:
URL: https://github.com/apache/airflow/issues/11123#issuecomment-698316992
Thanks for opening your first issue here! Be sure to follow the issue template!
----------------------------------------------------------------
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
[GitHub] [airflow] kaxil commented on issue #11123: TypeError: unsupported operand type(s) for +: 'NoneType' and 'datetime.timedelta
Posted by GitBox <gi...@apache.org>.
kaxil commented on issue #11123:
URL: https://github.com/apache/airflow/issues/11123#issuecomment-698322794
Can you give us the steps to reproduce it, we can definitely take care of the condition but just want to make sure if this is reproducible.
----------------------------------------------------------------
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
[GitHub] [airflow] ashb commented on issue #11123: TypeError: unsupported operand type(s) for +: 'NoneType' and 'datetime.timedelta
Posted by GitBox <gi...@apache.org>.
ashb commented on issue #11123:
URL: https://github.com/apache/airflow/issues/11123#issuecomment-698337671
What version were you upgrading from? Have you been running master for long?
----------------------------------------------------------------
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
[GitHub] [airflow] turbaszek commented on issue #11123: TypeError: unsupported operand type(s) for +: 'NoneType' and 'datetime.timedelta
Posted by GitBox <gi...@apache.org>.
turbaszek commented on issue #11123:
URL: https://github.com/apache/airflow/issues/11123#issuecomment-698317832
@ashb @kaxil what do you think?
----------------------------------------------------------------
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
[GitHub] [airflow] boring-cyborg[bot] commented on issue #11123: TypeError: unsupported operand type(s) for +: 'NoneType' and 'datetime.timedelta
Posted by GitBox <gi...@apache.org>.
boring-cyborg[bot] commented on issue #11123:
URL: https://github.com/apache/airflow/issues/11123#issuecomment-698316992
Thanks for opening your first issue here! Be sure to follow the issue template!
----------------------------------------------------------------
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