MCPcopy Create free account
hub / github.com/devaccuracy/ledgerforge / Stop

Method Stop

lineage_worker.go:120–132  ·  view source on GitHub ↗

Stop gracefully stops the outbox processor. It signals the processor to stop and waits for pending work to complete.

()

Source from the content-addressed store, hash-verified

118// Stop gracefully stops the outbox processor.
119// It signals the processor to stop and waits for pending work to complete.
120func (p *LineageOutboxProcessor) Stop() {
121 p.mu.Lock()
122 if !p.running {
123 p.mu.Unlock()
124 return
125 }
126 p.running = false
127 close(p.stopCh)
128 p.mu.Unlock()
129
130 p.wg.Wait()
131 logrus.Info("Lineage outbox processor stopped")
132}
133
134// IsRunning returns whether the processor is currently running.
135//

Callers 15

serverCommandsFunction · 0.95
pollForTransactionStatusFunction · 0.45
runMethod · 0.45
pollForLineageMappingsFunction · 0.45
pollForBalanceFunction · 0.45
TestLineageFullFlowFunction · 0.45

Calls 3

LockMethod · 0.45
UnlockMethod · 0.45
InfoMethod · 0.45

Tested by 14

pollForTransactionStatusFunction · 0.36
pollForLineageMappingsFunction · 0.36
pollForBalanceFunction · 0.36
TestLineageFullFlowFunction · 0.36
TestLineageInflightHoldFunction · 0.36