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

新增自动创建app和自动注册job逻辑 #822

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mintonzhang
Copy link

@mintonzhang mintonzhang commented Jan 17, 2024

What is the purpose of the change

新增自动创建app和自动注册job逻辑

Brief changelog

之前是用的quartz,现在切换到powerjob,每一个定时器都需要手动注册。实在太麻烦了!
所以在powerjob-worker-spring-boot-starter中新增了一些关于自动注册的配置类。(原本还改了client相关配置,本着最小修改原则,还原了)

Verifying this change

目前有以下功能:
stater中包含client配置,但是是可选的,如果没有加入power-client则不会自动注册
1、自动创建app
2、自动根据ProcessRegistry的信息进行job注册

我已验证

另外,提一个小小的建议。
power-client的api太不友好了,什么都传id,太查了! 建议新增一个唯一键,可以进行自定义。 比如job以name、app以name为唯一键

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant