Skip to content

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

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

Closed
ExplodingDragon opened this issue Oct 16, 2023 · 0 comments · Fixed by #27662
Labels
Milestone

Comments

@ExplodingDragon
Copy link
Contributor

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

workflows, schedules, err := actions_module.DetectWorkflows(gitRepo, commit, input.Event, input.Payload)
if err != nil {
return fmt.Errorf("DetectWorkflows: %w", err)
}

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

@ExplodingDragon ExplodingDragon changed the title Old Scheduled Tasks Not Cleared When Creating Remove Scheduled Task Configuration Commits Old Scheduled Action Tasks Not Cleared When Creating Remove Scheduled Task Configuration Commits Oct 16, 2023
@lunny lunny added this to the 1.21.0 milestone Oct 17, 2023
GiteaBot pushed a commit to GiteaBot/gitea that referenced this issue Oct 19, 2023
KN4CK3R added a commit that referenced this issue Oct 19, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 3, 2023
silverwind pushed a commit to silverwind/gitea that referenced this issue Feb 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants