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

OneOffJobBootstrap doesn't support parameters #1430

Closed
specYyt opened this issue Aug 31, 2020 · 7 comments
Closed

OneOffJobBootstrap doesn't support parameters #1430

specYyt opened this issue Aug 31, 2020 · 7 comments
Labels

Comments

@specYyt
Copy link

specYyt commented Aug 31, 2020

Hello!

I think OneOffJob is different with SimpleJob or FlowJob.

SimpleJob focus on loop but oneoffjob focus on dispatch. So oneOffJob should have parameters.

Snipaste_2020-08-31_12-00-54

Looking forward to your reply!

@Technoboy-
Copy link
Contributor

Yes, we are aware of this issue. We will support it soon.
Please add ( ss_assistant_1) to join our wechat group .

@huran111
Copy link

huran111 commented Sep 1, 2020

What is the current stable version?

@TeslaCN
Copy link
Member

TeslaCN commented Sep 2, 2020

In my opinion, OneOffJob is a type of Bootstrap and SimpleJob or FlowJob are types of ElasticJob, they are different concepts. Parameters can be provided by JobConfiguration and distinguish by ShardingContext. Just create a custom implementation of JobItemExecutor and you can get JobConfiguration and ShardingContext. There is no need to change the API of OneOffJobBootstrap.
What do you think? @Technoboy- @specYyt

@Technoboy-
Copy link
Contributor

In my opinion, OneOffJob is a type of Bootstrap and SimpleJob or FlowJob are types of ElasticJob, they are different concepts. Parameters can be provided by JobConfiguration and distinguish by ShardingContext. Just create a custom implementation of JobItemExecutor and you can get JobConfiguration and ShardingContext. There is no need to change the API of OneOffJobBootstrap.
What do you think? @Technoboy- @specYyt

Yes, keep the current api, and will support parameters in JobConfiguration.

@Technoboy-
Copy link
Contributor

What is the current stable version?

Master branch is more preferred. No unresolved bugs. We are talking about the extension of OneOffJob.

@huran111
Copy link

huran111 commented Sep 2, 2020 via email

@terrymanu terrymanu removed this from the 3.0.0-beta milestone Oct 24, 2020
@Technoboy-
Copy link
Contributor

After talking about the details, we think it's not a common scenario, and will not support recently. Thanks for your reporting.

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

No branches or pull requests

5 participants