mirror of
https://github.com/go-gitea/gitea
synced 2025-12-07 13:28:25 +00:00
archiver: setup infrastructure for notifying consumers of completion
This API will *not* allow consumers to subscribe to specific requests being completed, just *any* request being completed. The caller is responsible for determining if their request is satisfied and waiting again if needed.
This commit is contained in:
@@ -28,6 +28,7 @@ import (
|
||||
"code.gitea.io/gitea/modules/ssh"
|
||||
"code.gitea.io/gitea/modules/task"
|
||||
"code.gitea.io/gitea/modules/webhook"
|
||||
"code.gitea.io/gitea/services/archiver"
|
||||
"code.gitea.io/gitea/services/mailer"
|
||||
mirror_service "code.gitea.io/gitea/services/mirror"
|
||||
pull_service "code.gitea.io/gitea/services/pull"
|
||||
@@ -50,6 +51,7 @@ func checkRunMode() {
|
||||
// NewServices init new services
|
||||
func NewServices() {
|
||||
setting.NewServices()
|
||||
archiver.NewContext()
|
||||
mailer.NewContext()
|
||||
_ = cache.NewContext()
|
||||
notification.NewContext()
|
||||
|
||||
Reference in New Issue
Block a user