mirror of
https://github.com/go-gitea/gitea.git
synced 2025-04-08 17:05:45 +02:00
fix: do not init actions service when disabled
This commit is contained in:
parent
5ae2816ac4
commit
a145ec2f2b
@ -23,12 +23,14 @@ import (
|
||||
)
|
||||
|
||||
func Init() {
|
||||
if !setting.Actions.Enabled {
|
||||
return
|
||||
}
|
||||
|
||||
jobEmitterQueue = queue.CreateUniqueQueue("actions_ready_job", jobEmitterQueueHandle, new(jobUpdate))
|
||||
go graceful.GetManager().RunWithShutdownFns(jobEmitterQueue.Run)
|
||||
|
||||
if setting.Actions.Enabled {
|
||||
notification.RegisterNotifier(NewNotifier())
|
||||
}
|
||||
notification.RegisterNotifier(NewNotifier())
|
||||
}
|
||||
|
||||
func DeleteResourceOfRepository(ctx context.Context, repo *repo_model.Repository) error {
|
||||
|
Loading…
x
Reference in New Issue
Block a user