func (*PollingTaskRunner) InterruptActiveTask(ctx context.Context) errorInterrupt the active task by canceling its lease extension and reporting it as failed.
If there is no active task, the method returns nil.
Parameters
Section titled “Parameters”ctx context.Context required The context used to report the interrupted task.
Returns
Section titled “Returns”An error if the active task could not be reported as failed.