fixed getTasksToExecCommand_JEDI for recovery from pending