MCPcopy Index your code
hub / github.com/rilldata/rill / cancelIfRunning

Method cancelIfRunning

runtime/controller.go:1547–1552  ·  view source on GitHub ↗

cancelIfRunning cancels a running invocation for the resource. It does nothing if no invocation is running for the resource. It must be called while c.mu is held.

(n *runtimev1.ResourceName)

Source from the content-addressed store, hash-verified

1545// It does nothing if no invocation is running for the resource.
1546// It must be called while c.mu is held.
1547func (c *Controller) cancelIfRunning(n *runtimev1.ResourceName) {
1548 inv, ok := c.invocations[nameStr(n)]
1549 if ok {
1550 inv.cancel(false)
1551 }
1552}
1553
1554// invocation represents a running reconciler invocation for a specific resource.
1555type invocation struct {

Callers 5

UpdateMetaMethod · 0.95
UpdateNameMethod · 0.95
UpdateSpecMethod · 0.95
DeleteMethod · 0.95
CancelMethod · 0.95

Calls 2

nameStrFunction · 0.85
cancelMethod · 0.45

Tested by

no test coverage detected