Open srigi opened 6 years ago
There were no commits to this project for almost a year. It is, at the moment, abandoned. It would be great if someone (you) could pick it up.
So this issue is related to a fix applied by the Docker Swarm team, but a workaround has been provided in this note
Using this workaround in a change to the cron.go file, and an update to the Docker version included in this project's Dockerfile I was able to get this working.
I understand this project is abandoned, and I do not believe I am qualified to pick this up moving forward (this is the first time I have modified Golang code) but I wanted to put this note here to suggest it's a fairly easy fix (hack)
Thanks for all your work on this.
As you noticed, the project is up for adoption. If you'd like to take it over @beenhead, I can help you with Go.
I tried the basic example with clean installation of Docker in Virtualbox VM:
First I deployed a CRON service as a stack:
Then I send request do API via
curl
:Then I inspected log of cron service (after more than 15s):
Finally I inspected logs of scheduled task to see if it is executing every 15s:
As you can see, task was executed only once (even after waiting couple of minutes), so this cron solution for swarm doesn't work as expected. There should be 4 log lines for every minute.
Few more logs:
Please provide any feedback how this project is currently standing with respect to latest Docker. So far it looks like it is not working as expected.
Note, I'm using swarm with two nodes (master
dooku
, workergrievous
). Even if task is "constrained" to master node, it executes only once.