conductor icon indicating copy to clipboard operation
conductor copied to clipboard

Rerun API, not continue to run the following tasks ?

Open ma-sir opened this issue 9 years ago • 2 comments

image

{
  "reRunFromTaskId": "f32fc9ae-3016-4cb6-974a-5d4d929ae7c0"  #{task_5 id}
}

but task_6 not running

I check the code, in com.netflix.conductor.core.execution.WorkflowExecutor#rerun

				if (previousTask.getTaskId().equals(request.getReRunFromTaskId())) {
					Task theTask = new Task();
					theTask.setTaskId(IDGenerator.generate());
					theTask.setReferenceTaskName(previousTask.getReferenceTaskName());
					theTask.setInputData((request.getTaskInput() == null) ? previousTask.getInputData() : request.getTaskInput());
					theTask.setWorkflowInstanceId(workflowId);
					theTask.setStatus(Status.READY_FOR_RERUN);
					theTask.setTaskType(previousTask.getTaskType());
					theTask.setCorrelationId(wf.getCorrelationId());
					theTask.setSeq(seq++);
					theTask.setRetryCount(previousTask.getRetryCount() + 1);
					newTasks.add(theTask);
					break;
				} else { // Create with Skipped status
					Task theTask = new Task();

Here break, is this right?

ma-sir avatar May 15 '17 12:05 ma-sir

tagging this as a bug.

v1r3n avatar Jul 31 '17 04:07 v1r3n

This should be fixed now and is expected to be working correctly. Please reopen if you encounter this issue again.

apanicker-nflx avatar Jan 22 '19 00:01 apanicker-nflx