Discard implements custom discard behavior on standby clusters. When a side-effect task has been pending on standby past the discard delay, the framework calls Discard instead of silently dropping the task. For example, the activity dispatch handler implements this to spill tasks to matching. The ct
(context.Context, ComponentRef, TaskAttributes, T)
| 36 | // The ctx carries engine access, but implementations must avoid mutating component state on standby |
| 37 | // clusters. |
| 38 | Discard(context.Context, ComponentRef, TaskAttributes, T) error |
| 39 | sideEffectTaskHandler() |
| 40 | } |
| 41 |
no outgoing calls