Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Register typed handlers and run a capacity-aware worker.
registry := headgate.NewRegistry() err := registry.RegisterFunc[GenerateInvoice]( func(ctx context.Context, job *headgate.Job[GenerateInvoice]) error { headgate.Log(ctx, "generating "+job.Args.InvoiceID) return nil }) if err != nil { return err } runner := headgate.NewRunner(store, registry, headgate.Config{ Queues: map[string]headgate.QueueConfig{ "billing": {MaxWorkers: 16}, }, }) return runner.Run(ctx)
Was this page helpful?