PremoWeb / chadburn

Chadburn is a scheduler alternative to cron, built on Go and designed for Docker environments.
MIT License
30 stars 4 forks source link

Doesn't seem to work in multi-node swarm #15

Closed fidelix closed 5 months ago

fidelix commented 2 years ago

I'm using caprover in cluster mode (multi-node swarm).

Here is the spec for a service:

TaskTemplate:
  ContainerSpec:
    Labels:
      chadburn.enabled: "true"
      chadburn.job-exec.drush-cron.command: "drush --uri=https://www.mysite.com cron-run"
      chadburn.job-exec.drush-cron.schedule: "@every 10m"

The task is not being executed (or it's erroring out and not showing in the logs). I tried to set chadburn to run only in a manager node to see if that was the issue, but I got the same results.

fidelix commented 2 years ago

For anyone else wondering how to get it working for swarms:

I'm using this instead: https://github.com/funkyfuture/deck-chores

And it works excellently on swarm environments.

maietta commented 2 years ago

@fidelix.

I'll take a look at that project source for inspiration for upcoming version 2.x of Chadburn. Thanks!