Provide task queue registration and service container injection.

This commit is contained in:
mikestefanello 2024-06-19 13:53:44 -04:00
parent 0d2ad6e936
commit 912ae2ca6b
5 changed files with 96 additions and 78 deletions

10
pkg/tasks/register.go Normal file
View file

@ -0,0 +1,10 @@
package tasks
import (
"github.com/mikestefanello/pagoda/pkg/services"
)
// Register registers all task queues with the task client
func Register(c *services.Container) {
c.Tasks.Register(NewExampleTaskQueue(c))
}