mirror of
https://github.com/go-gitea/gitea.git
synced 2025-02-02 15:09:33 -05:00
fix: do not init cron for actions when it's disabled
This commit is contained in:
parent
950a5ad29c
commit
a6917db570
@ -7,10 +7,14 @@ import (
|
||||
"context"
|
||||
|
||||
user_model "code.gitea.io/gitea/models/user"
|
||||
"code.gitea.io/gitea/modules/setting"
|
||||
actions_service "code.gitea.io/gitea/services/actions"
|
||||
)
|
||||
|
||||
func initActionsTasks() {
|
||||
if !setting.Actions.Enabled {
|
||||
return
|
||||
}
|
||||
registerStopZombieTasks()
|
||||
registerStopEndlessTasks()
|
||||
registerCancelAbandonedJobs()
|
||||
|
Loading…
Reference in New Issue
Block a user