mcuadros / ofelia

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

Cron schedule every minute #56

Open mnzaki opened 6 years ago

mnzaki commented 6 years ago

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

mnzaki commented 6 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 6 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 6 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).