Skip to main content

高性能分布式任务队列

Project description

Jettask

高性能分布式任务队列。

安装

pip install jettask

快速开始

from jettask import Jettask, TaskMessage

app = Jettask()


@app.task(queue="math")
def add(x, y):
    print(f"{x} + {y} = {x + y}")


# 发送
app.send_sync([
    TaskMessage(queue="math", kwargs={"x": 1, "y": 2}),
])

启动 Worker:

jettask worker start -a main:app -t add -c 4

特性

  • 延迟任务、优先级、自动重试
  • 定时调度(Cron / 固定间隔 / 一次性)
  • QPS 和并发限流,运行期间动态调整
  • 手动确认(Manual ACK)
  • 通配符队列、多 Handler Fan-out
  • TaskRouter 模块化组织
  • 多应用命名空间隔离
  • 崩溃恢复,消息零丢失
  • PostgreSQL 持久化

文档

详见 教程

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jettask_python-0.1.0-py3-none-any.whl (3.2 MB view details)

Uploaded Python 3

File details

Details for the file jettask_python-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: jettask_python-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for jettask_python-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f2bf1108ace99401317c1cfec17482b0b0a25eaa7ae86fa9b765e5c6d606570a
MD5 510fac8f530b382ca3c565994ad12d87
BLAKE2b-256 a23fea71cc6f0a8624215c0d48dd6b10bf8b2ddacc5b0b86bc236c33bf351bd0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page