{"id":13502534,"url":"https://github.com/pallets-eco/flask-rq","last_synced_at":"2025-12-16T18:02:35.991Z","repository":{"id":3981844,"uuid":"5077624","full_name":"pallets-eco/flask-rq","owner":"pallets-eco","description":"RQ (Redis Queue) integration for Flask and Quart applications.","archived":false,"fork":false,"pushed_at":"2025-06-14T20:36:50.000Z","size":314,"stargazers_count":229,"open_issues_count":1,"forks_count":36,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-11-05T11:03:44.155Z","etag":null,"topics":["flask","python","redis","rq"],"latest_commit_sha":null,"homepage":"https://flask-rq.readthedocs.io","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pallets-eco.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"pallets","custom":"https://palletsprojects.com/donate","tidelift":"pypi/Flask"}},"created_at":"2012-07-17T05:19:01.000Z","updated_at":"2025-10-09T15:41:33.000Z","dependencies_parsed_at":"2024-06-19T05:18:06.329Z","dependency_job_id":"2fc21a0d-c6b1-48dd-8061-f0842f242c9e","html_url":"https://github.com/pallets-eco/flask-rq","commit_stats":null,"previous_names":["pallets-eco/flask-rq","mattupstate/flask-rq"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/pallets-eco/flask-rq","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pallets-eco%2Fflask-rq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pallets-eco%2Fflask-rq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pallets-eco%2Fflask-rq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pallets-eco%2Fflask-rq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pallets-eco","download_url":"https://codeload.github.com/pallets-eco/flask-rq/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pallets-eco%2Fflask-rq/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27769142,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-16T02:00:10.477Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flask","python","redis","rq"],"created_at":"2024-07-31T22:02:17.121Z","updated_at":"2025-12-16T18:02:35.968Z","avatar_url":"https://github.com/pallets-eco.png","language":"Python","funding_links":["https://github.com/sponsors/pallets","https://palletsprojects.com/donate","https://tidelift.com/funding/github/pypi/Flask"],"categories":["Python","Third-Party Extensions"],"sub_categories":["Task Queues"],"readme":"# Flask-RQ\r\n\r\nFlask-RQ is a [Flask]/[Quart] extension that background job execution using\r\n[RQ]. RQ allows queueing functions to be run in separate worker processes,\r\nallowing long-running jobs to run in the background without blocking the web app\r\nfrom returning a response quickly. Flask-RQ allows configuring RQ using Flask's\r\nconfig, and handles executing jobs in the application context, so other services\r\nlike database connections are available.\r\n\r\n[Flask]: https://flask.palletsprojects.com\r\n[Quart]: https://quart.palletsprojects.com\r\n[RQ]: https://python-rq.org\r\n\r\n## Pallets Community Ecosystem\r\n\r\n\u003e [!IMPORTANT]\\\r\n\u003e This project is part of the Pallets Community Ecosystem. Pallets is the open\r\n\u003e source organization that maintains Flask; Pallets-Eco enables community\r\n\u003e maintenance of related projects. If you are interested in helping maintain\r\n\u003e this project, please reach out on [the Pallets Discord server][discord].\r\n\r\n[discord]: https://discord.gg/pallets\r\n\r\n## Installation\r\n\r\nInstall from [PyPI]:\r\n\r\n```\r\n$ pip install flask-rq\r\n```\r\n\r\n[PyPI]: https://pypi.org/project/Flask-RQ/\r\n\r\n## Example\r\n\r\n```python\r\nfrom flask import Flask, g\r\nfrom flask_rq import RQ\r\n\r\napp = Flask(__name__)\r\nrq = RQ(app)\r\n\r\n@rq.job\r\ndef send_password_reset_job(user_id:  int) -\u003e None:\r\n    ...\r\n\r\n@app.route(\"/auth/send-password-reset\")\r\ndef send_password_reset():\r\n    send_password_reset_job.enqueue(user_id=g.user.id)\r\n    return \"Check your email!\"\r\n```\r\n\r\n```\r\n$ flask rq worker\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpallets-eco%2Fflask-rq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpallets-eco%2Fflask-rq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpallets-eco%2Fflask-rq/lists"}