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

Executor支持只启动属于组的作业 #460

Closed
wenjingliang opened this issue Jul 19, 2018 · 1 comment
Closed

Executor支持只启动属于组的作业 #460

wenjingliang opened this issue Jul 19, 2018 · 1 comment

Comments

@wenjingliang
Copy link

wenjingliang commented Jul 19, 2018

Executor支持一个-D或环境变量:VIP_SATURN_INIT_JOB_BY_GROUPS,值的格式与作业配置的groups格式相同,如:groups1,groups2

如果Executor机器设置了这个变量,则该Executor只能启动该域下属于该groups的作业; 否则,可以启动该域下全部作业。

如果Executor配置了groups,而作业不属于这个groups,那么会打印一行INFO级别的日志,如:[testJob] msg=the job testJob wont be initialized, because it's not in the groups [group1, group2]

@kfchu kfchu added this to the 3.1.0 milestone Jul 19, 2018
@kfchu kfchu modified the milestones: 3.1.0, 3.1.1 Jul 26, 2018
@kfchu kfchu modified the milestones: 3.1.1, 3.2.0 Sep 5, 2018
@lzw2006 lzw2006 self-assigned this Dec 17, 2018
@lzw2006 lzw2006 added the done label Dec 17, 2018
lzw2006 added a commit that referenced this issue Dec 25, 2018
@vipshop vipshop deleted a comment from kfchu Dec 27, 2018
@vipshop vipshop deleted a comment from lzw2006 Dec 27, 2018
@heziai
Copy link
Member

heziai commented Dec 27, 2018

@wenjingliang 请review一下实现方案和代码,看是否OK

heziai added a commit that referenced this issue Dec 28, 2018
@heziai heziai changed the title JOB扫描非同组JOB报ClassNotFound Executor支持只启动属于组的作业 Jan 8, 2019
@kfchu kfchu closed this as completed Feb 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants