gjcarneiro / yacron

A modern Cron replacement that is Docker-friendly
MIT License
454 stars 38 forks source link

Job is always executed immediately on yacron start #67

Closed melkamar closed 1 year ago

melkamar commented 2 years ago

Description

The following job gets executed as soon as I start the yacron binary:

jobs:
  - name: test-01
    command: echo "foobar"
    shell: /bin/bash
    schedule: "* * * * *"

But it should only be triggered every whole minute.

andreas-wittig commented 1 year ago

the same is true for schedule: "*/10 * * * *". Most propably the same issue.

This is near to be a showstopper for us: We use yacron to synchronize two processes inside a container:

To make process 2 work, it needs to stop process 1. Due to the bug the behaviour is now:

gjcarneiro commented 1 year ago

fixed in 0.18