onTaskFail method

void onTaskFail(
  1. String taskId,
  2. Object error
)

任务执行失败

Implementation

void onTaskFail(String taskId, Object error) {
  final ctx = getContext(taskId);
  if (ctx != null) {
    ctx.markFailed(error);
    _scheduleProgressUpdate();
  }
}