onCancel

Behavior to be called on Task cancellation.

This method should be used if you need to perform cleanup in response to the task being cancelled before it was able to complete.

Parameters

stage

The running state execution state

void onCancel(StageExecution stage)