Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-10474

Fix cron trigger example in reference documentation

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: None
    • Fix Version/s: 3.2.16, 4.1.9, 4.2.3
    • Component/s: [Documentation]
    • Labels:
      None
    • Last commented by a User:
      false

      Description

      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...)

        Activity

        Hide
        LinkedList Martin Macko added a comment -
        Show
        LinkedList Martin Macko added a comment - I've created a pull request for this: https://github.com/spring-projects/spring-framework/pull/904
        Hide
        juergen.hoeller Juergen Hoeller added a comment -

        Good catch!

        Show
        juergen.hoeller Juergen Hoeller added a comment - Good catch!

          People

          • Assignee:
            juergen.hoeller Juergen Hoeller
            Reporter:
            blackduck.joe Joe Gamache
            Last updater:
            St├ęphane Nicoll
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Days since last comment:
              2 years, 17 weeks, 3 days ago