⏰ Scheduler

带 Lease 的延迟任务队列

Scheduler 通过 HTTP 管理延迟任务、基于 lease 的预留、任务确认和任务快照。

Scheduler

核心功能

创建 scheduler namespace,入队延迟任务,预留工作,延长 lease,并确认完成。

延迟任务

使用显式任务 ID 和 Go 风格 duration(如 30s5m)入队 JSON payload。

基于 Lease 的 Worker

在工作窗口内预留任务,延长 lease,然后确认或重新调度任务。

Snapshot Stream

通过 snapshot response 和 SSE snapshot 观察 scheduled 与 in-flight 任务。

Quick start

快速开始

Get started with Scheduler in seconds using the API.

1curl -X POST https://scheduler.hola.cloud/schedulers \
2  -d '{"id":"jobs","display_name":"Background jobs"}' \
3  && curl -X POST https://scheduler.hola.cloud/schedulers/jobs/tasks \
4  -d '{"id":"task-001","delay":"60s","payload":{"job":"backup"},"labels":["kind:backup"]}'
Use cases

常见用例

微服务编排

Build and deploy with Scheduler on HolaCloud's enterprise platform, designed for security, reliability, and scale.

数据管道自动化

Build and deploy with Scheduler on HolaCloud's enterprise platform, designed for security, reliability, and scale.

事件驱动架构

Build and deploy with Scheduler on HolaCloud's enterprise platform, designed for security, reliability, and scale.

后端 API 开发

Build and deploy with Scheduler on HolaCloud's enterprise platform, designed for security, reliability, and scale.

Ready to get started?

Explore the documentation or launch the console to start building with Scheduler.

评论

发表评论