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

Method cancel

runtime/controller.go:1579–1585  ·  view source on GitHub ↗

cancel cancels the invocation. It can be called multiple times with different reschedule values, and will be rescheduled if any of the calls ask for it. It's not thread-safe (must be called while the controller's mutex is held).

(reschedule bool)

Source from the content-addressed store, hash-verified

1577// It can be called multiple times with different reschedule values, and will be rescheduled if any of the calls ask for it.
1578// It's not thread-safe (must be called while the controller's mutex is held).
1579func (i *invocation) cancel(reschedule bool) {
1580 if i.cancelledOn.IsZero() {
1581 i.cancelledOn = time.Now()
1582 i.cancelFn()
1583 }
1584 i.reschedule = i.reschedule || reschedule
1585}
1586
1587// addToWaitlist adds a resource name to the invocation's waitlist.
1588// Resources on the waitlist will be scheduled after the invocation completes.

Callers 15

RunMethod · 0.45
CreateMethod · 0.45
markPendingMethod · 0.45
cancelIfRunningMethod · 0.45
closeMethod · 0.45
deleteMethod · 0.45
restartControllerMethod · 0.45
CloseMethod · 0.45
CloseMethod · 0.45
CloseMethod · 0.45
CloseMethod · 0.45
CloseMethod · 0.45

Calls 1

IsZeroMethod · 0.45

Tested by

no test coverage detected