Skip to content

Fix cron trigger example in reference documentation [SPR-10474] #15107

@spring-projects-issues

Description

@spring-projects-issues

Joe Gamache opened SPR-10474 and commented

The latest (3.2) documentation (section 27.3) uses this cron expression:

new CronTrigger("* 15 9-17 * * MON-FRI")

and states that "is being scheduled to run 15 minutes past each hour but only during the 9-to-5", but in reality, this is going to schedule EVERY SECOND during that minute (I guess assuming the task is short enough). At least it does when using the Scheduled annotation. (The documentation there is ambiguous which should probably be cleaned up too...)


Referenced from: commits dac8c9e, 48838d4, f6dd7e4

Backported to: 4.1.9, 3.2.16

Metadata

Metadata

Assignees

Labels

status: backportedAn issue that has been backported to maintenance branchestype: documentationA documentation task

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions