Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

integration with fastapi app #409

Open
blnprasad opened this issue Sep 8, 2022 · 1 comment
Open

integration with fastapi app #409

blnprasad opened this issue Sep 8, 2022 · 1 comment

Comments

@blnprasad
Copy link

apologies for raising query as issue. I want to integrate rq-dashboard with existing fastapi app. are there any off the shelf projects exists? can you please suggest how I can achieve same with little integration effort?

@treppers
Copy link

treppers commented Sep 25, 2023

i would look into embedding a flask app inside a fastapi app.

https://fastapi.tiangolo.com/advanced/wsgi/

here's a snippet of what i did:

    flask_app = Flask(__name__)
    flask_app.config["RQ_DASHBOARD_REDIS_URL"] = process.env.REDIS_TLS_URL # hardcoded for rq_dashboard
    rq_dashboard.web.setup_rq_connection(flask_app)
    flask_app.register_blueprint(rq_dashboard.blueprint, url_prefix="/dashboard")
   

    app.mount("/rq", WSGIMiddleware(flask_app))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants