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

I think ElasticJobBootstrapConfiguration implements SmartInitializingSingleton have a bug #2044

Closed
Summary-wcj opened this issue Jan 15, 2022 · 2 comments

Comments

@Summary-wcj
Copy link

Summary-wcj commented Jan 15, 2022

I think ElasticJobBootstrapConfiguration implements SmartInitializingSingleton have a bug.

I use ElasticJob Lite

I don't know how to describe this error, but you can repeat this problem. I use the starter and email dependency of version 3.0.0, then use the job in OneOffJobBootstrap, and then start the program. It will appear that the bean of this task cannot be obtained during injection.

1.version:
3.0.1
ElasticJob Lite
2.Expected
start success
3.Actual
start fail
4.Reason analyze
I think implements SmartInitializingSingleton after @RestController is loaded and The bean was not taken over by spring when it was used.
5.Steps to reproduce the behavior
a.Configure one-time scheduled tasks in the YML file
b.Write a controller
c.Write a task implements simplejob and add @component annotation on the class
6.Example codes for reproduce this issue
https://github.com/Summary-wcj/elastic-job.git

@cocodroid
Copy link
Contributor

#2014

@Summary-wcj
Copy link
Author

thanks very much

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

3 participants