{"id":16881446,"url":"https://github.com/swhl/python-redis-flask-queue","last_synced_at":"2026-05-09T18:33:38.044Z","repository":{"id":124970097,"uuid":"343259289","full_name":"SWHL/python-redis-flask-queue","owner":"SWHL","description":"python中利用redis构建任务队列(queue)","archived":false,"fork":false,"pushed_at":"2021-03-04T06:45:22.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-25T05:41:26.790Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SWHL.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2021-03-01T01:44:12.000Z","updated_at":"2021-03-04T06:45:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"45c403a9-57ae-43ea-9548-8cee591d9d92","html_url":"https://github.com/SWHL/python-redis-flask-queue","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SWHL%2Fpython-redis-flask-queue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SWHL%2Fpython-redis-flask-queue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SWHL%2Fpython-redis-flask-queue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SWHL%2Fpython-redis-flask-queue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SWHL","download_url":"https://codeload.github.com/SWHL/python-redis-flask-queue/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244544730,"owners_count":20469718,"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","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":[],"created_at":"2024-10-13T16:02:31.456Z","updated_at":"2026-05-09T18:33:32.997Z","avatar_url":"https://github.com/SWHL.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"#### python-redis-flask-queue\n- 利用redis构建任务队列\n- 代码来源：[python中利用redis构建任务队列(queue)](https://www.cnblogs.com/arkenstone/p/7813551.html)\n\n#### 文件说明\n- `task.py`: rq work进程来监听队列\n- `test.py`: 模拟post和get请求\n- `app.py`: 搭建flask框架\n\n#### 运行步骤\n~~`python worker.py`启动`redis server`~~ 这种方式不能有效执行，目前不清楚问题在哪里？\n1. 启动redis\n2. `rq worker` 启动`redis server`\n3. `python app.py`启动`flask`服务\n4. `python test.py`发送post和get请求，打印队列中任务执行结果\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswhl%2Fpython-redis-flask-queue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswhl%2Fpython-redis-flask-queue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswhl%2Fpython-redis-flask-queue/lists"}