1
1
mirror of https://github.com/go-gitea/gitea synced 2025-11-03 04:48:25 +00:00

feat: stop zombie and endless tasks

This commit is contained in:
Jason Song
2022-11-02 17:59:01 +08:00
parent b1da53286d
commit 705aaf3eb2
6 changed files with 223 additions and 3 deletions

View File

@@ -31,6 +31,7 @@ func NewContext(original context.Context) {
_, _, finished := process.GetManager().AddTypedContext(graceful.GetManager().ShutdownContext(), "Service: Cron", process.SystemProcessType, true)
initBasicTasks()
initExtendedTasks()
initBotsTasks()
lock.Lock()
for _, task := range tasks {