Email: office@yourdomain.com
Phone:: +44 20 7240 9319
back to top

Blog

Celery beat

Такая вот странная штука после обновления пакетов и при запуске celery beat:

[2017-04-10 21:02:39,757: WARNING/MainProcess] Exception ignored in:
[2017-04-10 21:02:39,757: WARNING/MainProcess] >
[2017-04-10 21:02:39,757: WARNING/MainProcess] Traceback (most recent call last):
[2017-04-10 21:02:39,758: WARNING/MainProcess] File "/usr/lib/python3.5/shelve.py", line 162, in __del__
[2017-04-10 21:02:39,758: WARNING/MainProcess] self.close()
[2017-04-10 21:02:39,758: WARNING/MainProcess] File "/usr/lib/python3.5/shelve.py", line 144, in close
[2017-04-10 21:02:39,759: WARNING/MainProcess] self.sync()
[2017-04-10 21:02:39,759: WARNING/MainProcess] File "/usr/lib/python3.5/shelve.py", line 168, in sync
[2017-04-10 21:02:39,760: WARNING/MainProcess] self[key] = entry
[2017-04-10 21:02:39,760: WARNING/MainProcess] File "/usr/lib/python3.5/shelve.py", line 125, in __setitem__
[2017-04-10 21:02:39,761: WARNING/MainProcess] self.dict[key.encode(self.keyencoding)] = f.getvalue()
[2017-04-10 21:02:39,761: WARNING/MainProcess] _dbm
[2017-04-10 21:02:39,761: WARNING/MainProcess] .
[2017-04-10 21:02:39,761: WARNING/MainProcess] error
[2017-04-10 21:02:39,761: WARNING/MainProcess] :
[2017-04-10 21:02:39,762: WARNING/MainProcess] cannot add item to database

Лечится просто удалением celerybeat-schedule.db из корня проекта.