mher / flower

Real-time monitor and web admin for Celery distributed task queue
https://flower.readthedocs.io
Other
6.5k stars 1.09k forks source link

celery flower db path from s3 file or external source #1363

Open nirob-appsbee opened 8 months ago

nirob-appsbee commented 8 months ago

Describe the bug i am not able to set the db path from amazon s3 filepath. as db is growing day by day i want ot store flower.db in a different server like amazon s3. it is not working

To Reproduce Steps to reproduce the behavior:

  1. create a flowerconfig.py file in project directory
  2. import os basic_auth = ['sun:flower'] persistent = True db = "https://rocktomic.s3.ap-south-1.amazonaws.com/common-file/flower.db"

Error File "/usr/lib/python3.11/dbm/init.py", line 95, in open rocktomic-flower | return mod.open(file, flag, mode) rocktomic-flower | ^^^^^^^^^^^^^^^^^^^^^^^^^^ rocktomic-flower | _dbm.error: [Errno 2] No such file or directory: 'https://rocktomic.s3.ap-south-1.amazonaws.com/common-file/flower.db'

Screenshots see the screenshot in attachemnt Screenshot from 2024-03-27 14-57-41

sc68cal commented 7 months ago

Looking at the code, it uses shelf which uses the local filesystem for storage. db is a path on the filesystem.