Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Refactor ][admin]Refactor process #2391

Merged
merged 14 commits into from
Oct 17, 2023

Conversation

gaoyan1998
Copy link
Contributor

@gaoyan1998 gaoyan1998 commented Oct 16, 2023

修改:
删除全部Process的代码引用与逻辑,process.info等操作变为普通log操作,对应代码内部仅保留业务逻辑,不保留Procss相关代码。
使用:

  1. 在ProcessStep里添加枚举
    SUBMIT_EXECUTE_FLINK_SQL("SUBMIT_EXECUTE_FLINK_SQL", SUBMIT_BUILD_CONFIG, Status.PROCESS_SUBMIT_EXECUTEFLINKSQL),

第一个为枚举id标识,第二个为父级任务,如果为顶级任务则设为null,第三个为国际化,传任务名称说明

  1. 在对应controller注册process
    @ExecuteProcess(type = ProcessType.FLINK_SUBMIT)
    public Result<JobResult> submitTask(@ProcessId @RequestParam Integer id) throws Exception {
        ....
    }

@ExecuteProcess注解注册process,@processid表示processId

  1. 在需要的任务方法名注册Step
@ProcessStep(type = ProcessStepType.SUBMIT_TASK)
    public JobResult submitTask(Integer id, String savePointPath) throws Exception {
        .。。。
}

@gaoyan1998 gaoyan1998 marked this pull request as ready for review October 17, 2023 06:39
Copy link
Contributor

@zackyoungh zackyoungh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zackyoungh zackyoungh added the Refactor refactor code label Oct 17, 2023
@zackyoungh zackyoungh added this to the 1.0.0 milestone Oct 17, 2023
@zackyoungh zackyoungh changed the title Refactor process [Refactor ][admin]Refactor process Oct 17, 2023
@zackyoungh zackyoungh merged commit 7ebe855 into DataLinkDC:dev Oct 17, 2023
12 checks passed
@gaoyan1998 gaoyan1998 deleted the refactor-process branch December 18, 2023 03:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Refactor refactor code
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants