mher / flower

Real-time monitor and web admin for Celery distributed task queue

Home Page:https://flower.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

celery flower db path from s3 file or external source

nirob-appsbee opened this issue · comments

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

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