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

Function shouldRejectLockContentionImmediately

cmd/workers.go:180–185  ·  view source on GitHub ↗
(cfg *config.Configuration, err error)

Source from the content-addressed store, hash-verified

178}
179
180func shouldRejectLockContentionImmediately(cfg *config.Configuration, err error) bool {
181 if cfg == nil || !cfg.Queue.RejectLockContentionImmediately {
182 return false
183 }
184 return hotpairs.IsLockContentionError(err)
185}
186
187// indexData indexes data into TypeSense for searchability.
188// It fetches the collection name and payload from the task, ensures the collections exist,

Calls 1

IsLockContentionErrorFunction · 0.92