1
1
mirror of https://github.com/go-gitea/gitea synced 2025-11-02 12:28:25 +00:00

chore: rename to Init

This commit is contained in:
Jason Song
2022-11-16 10:09:44 +08:00
parent 9b021500b0
commit 745be45e1b
4 changed files with 11 additions and 8 deletions

View File

@@ -23,11 +23,6 @@ type jobUpdate struct {
RunID int64
}
func InitJobEmitter() {
jobEmitterQueue = queue.CreateUniqueQueue("bots_ready_job", jobEmitterQueueHandle, new(jobUpdate))
go graceful.GetManager().RunWithShutdownFns(jobEmitterQueue.Run)
}
func EmitJobsIfReady(runID int64) error {
err := jobEmitterQueue.Push(&jobUpdate{
RunID: runID,