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

Manually init for Scheduled [SPR-14562] #19131

Closed
spring-issuemaster opened this issue Aug 5, 2016 · 1 comment
Closed

Manually init for Scheduled [SPR-14562] #19131

spring-issuemaster opened this issue Aug 5, 2016 · 1 comment

Comments

@spring-issuemaster
Copy link
Collaborator

@spring-issuemaster spring-issuemaster commented Aug 5, 2016

Carlos Rivas opened SPR-14562 and commented

It is possible to launch a @Scheduled task with initialDelay, Cron and fixedRate. Sometimes, could be useful to have a manually initialization for Spring @Scheduled tasks. The Job could be waiting until the programmer sends the manual init.

@Component
class Service {
    @Scheduled(initMode=MANUAL/AUTO
    public void task(){}
}

myService.task() will invoke the @Scheduled job. At this moment, this could be done by reflection but I think it could be improved.


No further details from SPR-14562

@spring-issuemaster
Copy link
Collaborator Author

@spring-issuemaster spring-issuemaster commented Jan 12, 2019

Bulk closing outdated, unresolved issues. Please, reopen if still relevant.

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

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.