You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I'm running Flower service (flower==1.2.0) in K8s with replicas=1. The database file for Flower is maintained in K8s Persistent Volum:
From time to time, the Flower service crashes because of the corrupted database:
celery -A main flower --address=0.0.0.0 --port=5555 --purge_offline_workers=0 --max_tasks=100000 --persistent=True --db=/var/flower/flower.db --state_save_interval=5000
Traceback (most recent call last):
File "/usr/local/bin/celery", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.9/site-packages/celery/__main__.py", line 15, in main
sys.exit(_main())
File "/usr/local/lib/python3.9/site-packages/celery/bin/celery.py", line 217, in main
return celery(auto_envvar_prefix="CELERY")
File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1130, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.9/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/click/decorators.py", line 26, in new_func
return f(get_current_context(), *args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/flower/command.py", line 42, in flower
flower = Flower(capp=app, options=options, **settings)
File "/usr/local/lib/python3.9/site-packages/flower/app.py", line 62, in __init__
self.events = events or Events(
File "/usr/local/lib/python3.9/site-packages/flower/events.py", line 128, in __init__
if state:
File "/usr/local/lib/python3.9/shelve.py", line 99, in __len__
return len(self.dict)
_gdbm.error: Database needs recovery
make: *** [Makefile:13: flower] Error 1
Expected behavior
The database corruption should never happen since the database file is only accessed by Flower service.
The text was updated successfully, but these errors were encountered:
Describe the bug
I'm running Flower service (flower==1.2.0) in K8s with replicas=1. The database file for Flower is maintained in K8s Persistent Volum:
From time to time, the Flower service crashes because of the corrupted database:
Expected behavior
The database corruption should never happen since the database file is only accessed by Flower service.
The text was updated successfully, but these errors were encountered: