1
0
Fork 0
forked from forgejo/forgejo

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:
Kyle Evans 2020-05-05 22:36:07 -05:00
parent eb15781d98
commit d134c3f3ce
2 changed files with 56 additions and 16 deletions

View file

@ -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()