Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Cronflower: turn a Spring Boot app into a distributed cron cluster

说明与用途

Cronflower 将 Spring Boot 应用转变为可靠的分布式 cron 调度器,支持持久化、重试、超时和错过执行处理,无需外部数据库。

问题

Spring Boot @Scheduled jobs run per JVM, causing duplicate runs, no retry, no persistence, and failures on reboot when scaling or restarting.

结果

Cronflower transforms a Spring Boot app into a resilient, clustered cron system with persistence, retry, timeout, and misfire policies, eliminating duplicate runs and manual plumbing.

工作流

  • 1. Add Cronflower dependency to the Spring Boot project.
  • 2. Annotate executor methods with @Task (cron, interval, iso, or ycron).
  • 3. Configure optional attributes: maxRetryCount, retryInterval, timeout, misfirePolicy, parser, initialParameter.
  • 4. Run a scheduler instance alongside the executor; multiple schedulers form a cluster with a leader.
  • 5. Deploy multiple executor instances; each registers tasks with the scheduler.
  • 6. Monitor tasks via the Cronflower web console (task list, execution history).
  • 7. Observe retries, timeouts, and misfire handling as configured.

证据

Cronflower is that whole stack, open source: a distributed, stateful scheduler for Spring Boot with a web console, that forms its own cluster and needs no external database, broker or coordinator.

来源

Retry with back-off. Set maxRetryCount and retryInterval; a failed run is retried, and every attempt is logged.

来源

  • 记录日期: 2026-09-22T04:45:26.253Z