com.netflix.conductor.common.metadata.tasks.Task.setExecuted()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(3.1k)|赞(0)|评价(0)|浏览(94)

本文整理了Java中com.netflix.conductor.common.metadata.tasks.Task.setExecuted()方法的一些代码示例,展示了Task.setExecuted()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Task.setExecuted()方法的具体详情如下:
包路径:com.netflix.conductor.common.metadata.tasks.Task
类名称:Task
方法名:setExecuted

Task.setExecuted介绍

暂无

代码示例

代码示例来源:origin: Netflix/conductor

pendingTask.setExecuted(true);
List<Task> nextTasks = getNextTask(workflow, pendingTask);
nextTasks.forEach(nextTask -> tasksToBeScheduled.putIfAbsent(nextTask.getReferenceTaskName(), nextTask));

代码示例来源:origin: Netflix/conductor

rerunFromTask.setExecuted(false);
executionDAOFacade.updateTask(rerunFromTask);

代码示例来源:origin: Netflix/conductor

to.setRetriedTaskId( from.getRetriedTaskId() );
to.setRetried( from.getRetried() );
to.setExecuted( from.getExecuted() );
to.setCallbackFromWorker( from.getCallbackFromWorker() );
to.setResponseTimeoutSeconds( from.getResponseTimeoutSeconds() );

代码示例来源:origin: Netflix/conductor

task1.setSeq(1);
task1.setRetried(false);
task1.setExecuted(false);
task1.setStatus(Status.COMPLETED);
task2.setSeq(2);
task2.setRetried(false);
task2.setExecuted(false);
task2.setStatus(Status.COMPLETED);
workflow.getTasks().add(task2);

代码示例来源:origin: Netflix/conductor

@Test
public void testDecideFailedTask() {
  WorkflowDef workflowDef = createLinearWorkflow();
  Workflow workflow = new Workflow();
  workflow.setWorkflowDefinition(workflowDef);
  workflow.setStatus(WorkflowStatus.RUNNING);
  Task task = new Task();
  task.setTaskType("junit_task_l1");
  task.setReferenceTaskName("s1");
  task.setSeq(1);
  task.setRetried(false);
  task.setExecuted(false);
  task.setStatus(Status.FAILED);
  WorkflowTask workflowTask = new WorkflowTask();
  workflowTask.setTaskReferenceName("s1");
  workflowTask.setName("junit_task_l1");
  workflowTask.setTaskDefinition(new TaskDef("junit_task_l1"));
  task.setWorkflowTask(workflowTask);
  workflow.getTasks().add(task);
  DeciderOutcome deciderOutcome = deciderService.decide(workflow);
  assertNotNull(deciderOutcome);
  assertFalse(workflow.getTaskByRefName("s1").isExecuted());
  assertTrue(workflow.getTaskByRefName("s1").isRetried());
  assertEquals(1, deciderOutcome.tasksToBeUpdated.size());
  assertEquals("s1", deciderOutcome.tasksToBeUpdated.get(0).getReferenceTaskName());
  assertEquals(1, deciderOutcome.tasksToBeScheduled.size());
  assertEquals("s1", deciderOutcome.tasksToBeScheduled.get(0).getReferenceTaskName());
  assertEquals(0, deciderOutcome.tasksToBeRequeued.size());
  assertFalse(deciderOutcome.isComplete);
}

代码示例来源:origin: com.netflix.conductor/conductor-core

pendingTask.setExecuted(true);
List<Task> nextTasks = getNextTask(workflow, pendingTask);
nextTasks.forEach(nextTask -> tasksToBeScheduled.putIfAbsent(nextTask.getReferenceTaskName(), nextTask));

代码示例来源:origin: com.netflix.conductor/conductor-core

rerunFromTask.setExecuted(false);
executionDAOFacade.updateTask(rerunFromTask);

代码示例来源:origin: com.netflix.conductor/conductor-grpc

to.setRetriedTaskId( from.getRetriedTaskId() );
to.setRetried( from.getRetried() );
to.setExecuted( from.getExecuted() );
to.setCallbackFromWorker( from.getCallbackFromWorker() );
to.setResponseTimeoutSeconds( from.getResponseTimeoutSeconds() );

相关文章

Task类方法