onFail

open fun onFail(cycleNumber: Int, params: Map<String, Any>, exception: Exception?)

Called once after all retries are exhausted and the job has still not succeeded.