Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Job is always executed immediately on yacron start #67

Closed
melkamar opened this issue May 26, 2022 · 2 comments
Closed

Job is always executed immediately on yacron start #67

melkamar opened this issue May 26, 2022 · 2 comments

Comments

@melkamar
Copy link

  • Yet Another Cron version: 0.16.0
  • Python version: embedded
  • Operating System: ubuntu20

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
Copy link
Contributor

andreas-wittig commented Dec 28, 2022

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:

  • process 1 ist started initially
  • process 2 is started by a yacron schedule with this pattern.

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

  • process 1 is started at container init
  • immediately after that yacron is initilized and stops process 1 (which is still starting)

@gjcarneiro
Copy link
Owner

fixed in 0.18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants