onTimeout

Behavior to be called on Task timeout.

This method should be used if you need to perform any cleanup operations in response to the task being aborted after taking too long to complete.

Parameters

stage

The running state execution state

@Nullable()
TaskResult onTimeout(StageExecution stage)