项目概述
Simple job queues for Python
项目地址
https://github.com/rq/rq
项目页面预览

关键指标
- Stars:10550
- 主要语言:Python
- License:Other
- 最近更新:2026-01-12T23:17:59Z
- 默认分支:master
本站高速下载(国内可用)
点击下载(本站镜像)
– SHA256:993ca63c75770e0980931408f53d5de86a51f80012efdf6357a2686a601d84d8
安装部署要点(README 精选)
Getting started
First, run a Redis server, of course:
$ redis-server
To put jobs on queues, you don’t have to do anything special, just define
your typically lengthy or blocking function:
import requests
def count_words_at_url(url):
"""Just an example function that's called async."""
resp = requests.get(url)
return len(resp.text.split())
Then, create an RQ queue:
from redis import Redis
from rq import Queue
queue = Queue(connection=Redis())
And enqueue the function call:
from my_module import count_words_at_url
job = queue.enqueue(count_words_at_url, 'https://stamps.id')
Installation
Simply use the following command to install the latest released version:
$ pip install rq
常用命令(从 README 提取)
$ rq cron cron_config.py
cd docs
jekyll serve
通用部署说明
- 下载源码并阅读 README
- 安装依赖(pip/npm/yarn 等)
- 配置环境变量(API Key、模型路径、数据库等)
- 启动服务并测试访问
- 上线建议:Nginx 反代 + HTTPS + 进程守护(systemd / pm2)
免责声明与版权说明
本文仅做开源项目整理与教程索引,源码版权归原作者所有,请遵循对应 License 合规使用。
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END








暂无评论内容