Sign inSign up

fredfeng033/cronflower-server-api

By fredfeng033

•Updated 11 days ago

cronflower backend server application

Image
0

108

fredfeng033/cronflower-server-api repository overview

⁠cronflower server (scheduler)

The scheduler node of cronflower, a distributed, stateful cron scheduler with an optional DAG workflow engine. It bundles the cronsmith scheduler and the cronflow add-on. Run three nodes and they form a self-balancing cluster, no external gateway required.

⁠What it does

  • Owns the schedule and the durable state. A @Task becomes a persistent definition, the leader claims it when due and calls back over HTTP, so a restart or failover loses nothing.
  • Windowed loading keeps only tasks due soon in memory, so a cluster with hundreds of thousands of tasks still starts instantly.
  • Store is auto-detected from the JDBC url. Node-local H2 is replicated by the leader, a shared MySQL or PostgreSQL additionally unlocks group sharding.
  • cronflow turns the same cluster into a DAG engine (@Dag of @DagNode steps).

⁠Tags

TagMeaning
latestthe newest release
x.y.za specific release, for example 1.0.0
x.ythe latest patch of a minor line

⁠Run

The recommended way is the three-node compose template (3 schedulers plus console, optional executor):

https://github.com/paganini2008/cronflower/blob/main/backend/cronflower-docker/docker-compose.yaml⁠

docker compose up -d
# open http://localhost:7200   (sign in admin / admin123)

⁠Configuration

Everything is passed through SPRING_APPLICATION_JSON (or plain Spring env vars). Port is 8080.

SettingPurpose
spring.spreader.port / spring.spreader.ip-addressescluster port (22000) and the peer node addresses
spring.datasource.url / username / passwordthe store. Omit for the bundled per-node H2
cronsmith.server.scheduler.shardingset true with a shared database to spread task groups
cronflow.security.jwt.secretone long random value, the same on every node

Default login is admin / admin123. Change the JWT secret and the demo accounts before any real deployment. Full reference: https://github.com/paganini2008/cronflower/blob/main/docs/configuration.md⁠

Tag summary

Content type

Image

Digest

sha256:c6302768c…

Size

210.6 MB

Last updated

11 days ago

docker pull fredfeng033/cronflower-server-api