semaphoreui / semaphore

Modern UI for Ansible, Terraform, OpenTofu, Bash, Pulumi.
https://semaphoreui.com
MIT License
10.28k stars 1.03k forks source link

Problem: Semaphore starts tasks very often. #2294

Open ITTV-tools opened 3 weeks ago

ITTV-tools commented 3 weeks ago

Issue

Semaphore starts tasks randomly. Some of them are running forever. grafik grafik grafik

Impact

Service (scheduled tasks, alerts)

Installation method

Docker

Database

MySQL

Browser

Firefox

Semaphore Version

v2.10.22-e44910d-1721658561

Ansible Version

No response

Logs & errors

No response

Manual installation - system information

No response

Configuration

No response

Additional information

No response

dag-gremache commented 3 weeks ago

I had the same thing happen on the latest version of Semaphore. It seems there might be an issue with the cron generation. Toggle the "Show Cron format" and make sure it matches what you want the schedule to be.

You can also use https://crontab.guru/#*_*_*_* to generate the cron and paste it into semaphore.

AndrewSav commented 3 weeks ago

There are two different cron specifications. One is the origingal one that has been in use since inception of cron https://en.wikipedia.org/wiki/Cron and the other one, is what is used in the most popular cron library for go lanuguage https://pkg.go.dev/github.com/robfig/cron?utm_source=godoc#hdr-CRON_Expression_Format. They are incompatible. I can see that robfig/cron is present in go.mod So which cron expression format is used here?

ITTV-tools commented 3 weeks ago

Looks like its working correctly if I create the cron without the GUI