MCPcopy Index your code
hub / github.com/riverqueue/river / executorShutdownLoop

Method executorShutdownLoop

producer.go:678–685  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

676}
677
678func (p *producer) executorShutdownLoop() {
679 // No more jobs will be fetched or executed. However, we must wait for all
680 // in-progress jobs to complete.
681 for len(p.activeJobs) != 0 {
682 result := <-p.jobResultCh
683 p.removeActiveJob(result)
684 }
685}
686
687func (p *producer) finalizeShutdown(ctx context.Context) {
688 p.Logger.DebugContext(ctx, p.Name+": Finalizing shutdown")

Callers 1

StartWorkContextMethod · 0.95

Calls 1

removeActiveJobMethod · 0.95

Tested by

no test coverage detected