Skip to content

can't change cron config #37009

@fancyerii

Description

@fancyerii

Description

I use gitea for myself and deploy it on my laptop. I found gitea use cpu up to 200% every few minutes. I found "Start actions schedule tasks" was scheduled every minutes and "Stop actions zombie tasks" was scheduled every 5 minutes.
I want to change this setting. I searched the document but can't find related config. And I ask Gemini for help. it tell me to change:

[cron.actions.stop_zombie_runs] 
SCHEDULE = @every 1h

[cron.actions.schedule_tasks] 
SCHEDULE = @every 10m

[cron.actions.stop_endless_tasks] 
SCHEDULE = @every 12h

But it doesn't work. And I asked it again. it gave me new answer:

[cron.update_mirrors]
SCHEDULE = 0 0 0 * * *
 

[cron.reap_zombie_actions] 
SCHEDULE = @every 1h

[cron.trigger_scheduled_workflows] 
SCHEDULE = @every 1h

[cron.stop_endless_workflows] 
SCHEDULE = @every 12h

But it still not work. Please tell me how to change them and update the document.

Gitea Version

gitea version 1.25.4 built with GNU Make 4.3, go1.25.6 : bindata, sqlite, sqlite_unlock_notify

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?

sudo systemctl start gitea

Database

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/questionIssue needs no code to be fixed, only a description on how to fix it yourself.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions