Old Scheduled Action Tasks Not Cleared When Creating Remove Scheduled Task Configuration Commits #11868

Closed
opened 2025-11-02 09:50:14 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @ExplodingDragon on GitHub (Oct 16, 2023).

Description

After I remove the existing cron configuration, gitea does not remove the scheduled tasks from the database,

image

Configuration parsing fails and ends without clearing the old cron task.

image

0d55f64e6c/services/actions/notifier_helper.go (L149-L152)

Gitea Version

main

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

systemd

Database

SQLite

Originally created by @ExplodingDragon on GitHub (Oct 16, 2023). ### Description After I remove the existing cron configuration, gitea does not remove the scheduled tasks from the database, ![image](https://github.com/go-gitea/gitea/assets/33776693/4a4a3c17-8c43-4f11-a949-df2523c79794) Configuration parsing fails and ends without clearing the old cron task. ![image](https://github.com/go-gitea/gitea/assets/33776693/68b0446d-27fc-4296-922a-0a2fa9bf6268) https://github.com/go-gitea/gitea/blob/0d55f64e6cd3de2e1e5c0ee795605823efb14231/services/actions/notifier_helper.go#L149-L152 ### Gitea Version main ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? systemd ### Database SQLite
GiteaMirror added the type/bug label 2025-11-02 09:50:14 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#11868