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

Allow @Scheduled methods to have parameters [SPR-17443] #21975

spring-issuemaster opened this issue Oct 29, 2018 · 1 comment

Allow @Scheduled methods to have parameters [SPR-17443] #21975

spring-issuemaster opened this issue Oct 29, 2018 · 1 comment


Copy link

@spring-issuemaster spring-issuemaster commented Oct 29, 2018

Caleb Cushing opened SPR-17443 and commented

I can accept that the parameters need to be some sort of Bean or otherwise resolvable like from property sources, but it seems like that should be possible.

   @Scheduled( fixedRateString = CREATED_SCHEDULE_PLACEHOLDER )
    void publishCreatedEmrs( @Value( CREATED_SCHEDULE_PLACEHOLDER ) Duration duration ) {
.... code that queries by duration here

Affects: 5.0.10

Copy link

@dnl50 dnl50 commented Jun 4, 2019

Is this something I could take a look into (although I think it might be a little bit complicated)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.