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:
parent
eb15781d98
commit
d134c3f3ce
2 changed files with 56 additions and 16 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue