mcuadros / ofelia

A docker job scheduler (aka. crontab for docker)
MIT License
2.95k stars 173 forks source link

Cron schedule every minute #56

Open mnzaki opened 5 years ago

mnzaki commented 5 years ago

it seems the * * * * * schedule is buggy. Ofelia runs the command every second.

mnzaki commented 5 years ago

Oh it seems the schedule syntax starts with seconds! That was unexpected....I believe the original cron starts with minutes. Perhaps a note in the README?

mvhirsch commented 5 years ago

Hi, yes classic cron only runs in minutes, not seconds. Anyway, you mean a note in the README like this? :-)

https://github.com/mcuadros/ofelia/blob/master/README.md#jobs

mnzaki commented 5 years ago

Well yes probably there, but less misleading :sweat_smile:

It uses a INI-style config file and the scheduling format is exactly the same from the original cron

To me "original cron" basically read as "classic cron", and now I'm assuming you actually mean the robfig/cron go package, which uses seconds (unlike classic cron).