Search in sources :

Example 6 with JobVertex

use of com.flink.platform.common.model.JobVertex in project flink-platform-backend by itinycheng.

the class JobFlowDagHelperTest method test5.

@Test
public void test5() {
    JobVertex vertex = dag.getVertex(2L);
    vertex.setJobRunStatus(SUCCESS);
    vertex = dag.getVertex(1L);
    vertex.setJobRunStatus(SUCCESS);
    Set<JobVertex> executableVertices = JobFlowDagHelper.getExecutableVertices(dag);
    System.out.println(executableVertices);
}
Also used : JobVertex(com.flink.platform.common.model.JobVertex) Test(org.junit.Test)

Example 7 with JobVertex

use of com.flink.platform.common.model.JobVertex in project flink-platform-backend by itinycheng.

the class JobFlowDagHelperTest method test11.

@Test
public void test11() {
    JobVertex vertex = dag.getVertex(2L);
    vertex.setJobRunStatus(FAILURE);
    vertex = dag.getVertex(1L);
    vertex.setJobRunStatus(FAILURE);
    Set<JobVertex> executableVertices = JobFlowDagHelper.getExecutableVertices(dag);
    System.out.println(executableVertices);
}
Also used : JobVertex(com.flink.platform.common.model.JobVertex) Test(org.junit.Test)

Example 8 with JobVertex

use of com.flink.platform.common.model.JobVertex in project flink-platform-backend by itinycheng.

the class JobFlowDagHelperTest method test6.

@Test
public void test6() {
    JobVertex vertex = dag.getVertex(2L);
    vertex.setJobRunStatus(SUCCESS);
    vertex = dag.getVertex(1L);
    vertex.setJobRunStatus(SUCCESS);
    vertex = dag.getVertex(3L);
    Set<JobVertex> executableVertices = JobFlowDagHelper.getExecutableVertices(dag);
    System.out.println(executableVertices);
}
Also used : JobVertex(com.flink.platform.common.model.JobVertex) Test(org.junit.Test)

Example 9 with JobVertex

use of com.flink.platform.common.model.JobVertex in project flink-platform-backend by itinycheng.

the class JobFlowDagHelperTest method test9.

@Test
public void test9() {
    JobVertex vertex = dag.getVertex(2L);
    vertex.setJobRunStatus(SUCCESS);
    vertex = dag.getVertex(1L);
    vertex.setJobRunStatus(SUCCESS);
    vertex = dag.getVertex(3L);
    vertex.setJobRunStatus(SUCCESS);
    vertex = dag.getVertex(4L);
    vertex.setJobRunStatus(SUCCESS);
    vertex = dag.getVertex(5L);
    vertex.setJobRunStatus(SUCCESS);
    Set<JobVertex> executableVertices = JobFlowDagHelper.getExecutableVertices(dag);
    System.out.println(executableVertices);
}
Also used : JobVertex(com.flink.platform.common.model.JobVertex) Test(org.junit.Test)

Example 10 with JobVertex

use of com.flink.platform.common.model.JobVertex in project flink-platform-backend by itinycheng.

the class JobFlowDagHelperTest method test8.

@Test
public void test8() {
    JobVertex vertex = dag.getVertex(2L);
    vertex.setJobRunStatus(SUCCESS);
    vertex = dag.getVertex(1L);
    vertex.setJobRunStatus(SUCCESS);
    vertex = dag.getVertex(3L);
    vertex.setJobRunStatus(SUCCESS);
    vertex = dag.getVertex(4L);
    vertex.setJobRunStatus(SUCCESS);
    Set<JobVertex> executableVertices = JobFlowDagHelper.getExecutableVertices(dag);
    System.out.println(executableVertices);
}
Also used : JobVertex(com.flink.platform.common.model.JobVertex) Test(org.junit.Test)

Aggregations

JobVertex (com.flink.platform.common.model.JobVertex)19 Test (org.junit.Test)11 JobEdge (com.flink.platform.common.model.JobEdge)6 ExecutionStatus (com.flink.platform.common.enums.ExecutionStatus)5 JobFlowDag (com.flink.platform.dao.entity.JobFlowDag)4 RUNNING (com.flink.platform.common.enums.ExecutionStatus.RUNNING)3 JobFlowRun (com.flink.platform.dao.entity.JobFlowRun)3 Nonnull (javax.annotation.Nonnull)3 CollectionUtils (org.apache.commons.collections4.CollectionUtils)3 QueryWrapper (com.baomidou.mybatisplus.core.conditions.query.QueryWrapper)2 ExecutionCondition (com.flink.platform.common.enums.ExecutionCondition)2 AND (com.flink.platform.common.enums.ExecutionCondition.AND)2 OR (com.flink.platform.common.enums.ExecutionCondition.OR)2 ABNORMAL (com.flink.platform.common.enums.ExecutionStatus.ABNORMAL)2 ERROR (com.flink.platform.common.enums.ExecutionStatus.ERROR)2 FAILURE (com.flink.platform.common.enums.ExecutionStatus.FAILURE)2 KILLED (com.flink.platform.common.enums.ExecutionStatus.KILLED)2 NOT_EXIST (com.flink.platform.common.enums.ExecutionStatus.NOT_EXIST)2 SUBMITTED (com.flink.platform.common.enums.ExecutionStatus.SUBMITTED)2 SUCCESS (com.flink.platform.common.enums.ExecutionStatus.SUCCESS)2