Skip to content

Problem: Scheduled tasks are executed twice #2813

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

Open
Skyfay opened this issue Mar 19, 2025 · 5 comments
Open

Problem: Scheduled tasks are executed twice #2813

Skyfay opened this issue Mar 19, 2025 · 5 comments
Assignees
Milestone

Comments

@Skyfay
Copy link

Skyfay commented Mar 19, 2025

Issue

Image

Planned tasks are sometimes executed twice.

Impact

Service (scheduled tasks, alerts)

Installation method

Docker

Database

Postgres

Browser

No response

Semaphore Version

v2.12.14-685c726-1739570731

Ansible Version

Logs & errors

No response

Manual installation - system information

No response

Configuration

No response

Additional information

No response

@fiftin fiftin self-assigned this Mar 20, 2025
@fiftin fiftin added this to the 2.13 milestone Mar 20, 2025
@fiftin
Copy link
Collaborator

fiftin commented Mar 20, 2025

HI @Skyfay I need more details to understand the problem. Which cron record used for this tasks?

@Skyfay
Copy link
Author

Skyfay commented Mar 20, 2025

Hey @fiftin

The Schedules looks like this:

Image

I also don't understand why they are executed twice.

@Skyfay
Copy link
Author

Skyfay commented Mar 24, 2025

All I have is the following:

time="2025-03-24T02:10:00+01:00" level=info msg="Task 59 added to queue"
time="2025-03-24T02:10:01+01:00" level=info msg="Task 60 added to queue"
time="2025-03-24T02:10:01+01:00" level=info msg="Set resource locker with TaskRunner 59"
time="2025-03-24T02:10:01+01:00" level=info msg="Task 59 removed from queue"
time="2025-03-24T02:12:19+01:00" level=error msg="remove /tmp/semaphore/inventory_59: no such file or directory"
time="2025-03-24T02:12:19+01:00" level=info msg="Stopped running TaskRunner 59"
time="2025-03-24T02:12:19+01:00" level=info msg="Release resource locker with TaskRunner 59"
time="2025-03-24T02:12:21+01:00" level=info msg="Set resource locker with TaskRunner 60"
time="2025-03-24T02:12:21+01:00" level=info msg="Task 60 removed from queue"
time="2025-03-24T02:13:17+01:00" level=error msg="remove /tmp/semaphore/inventory_60: no such file or directory"
time="2025-03-24T02:13:17+01:00" level=info msg="Stopped running TaskRunner 60"
time="2025-03-24T02:13:17+01:00" level=info msg="Release resource locker with TaskRunner 60"

Template:
Image
Schedule:
Image

However, I have also seen these errors above with other tasks. I do not suspect that this has anything to do with it. The tasks also run successfully without any problems. I don't know why this output occurs.

(This is with version: v2.13.0-75ffe9c-1742166220)

@Skyfay
Copy link
Author

Skyfay commented Apr 1, 2025

Now another special thing, a task runs but it was disabled.

Image

Image

Maybe the schedule module is a little broken?

@fiftin fiftin assigned mgukov and unassigned fiftin Apr 18, 2025
@fiftin
Copy link
Collaborator

fiftin commented Apr 25, 2025

Hi @Skyfay maybe, but I can't reproduce the issue.

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