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

Fix cron trigger example in reference documentation

    XMLWordPrintable

    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:
      true

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

        Attachments

          Activity

            People

            Assignee:
            juergen.hoeller Juergen Hoeller
            Reporter:
            blackduck.joe Joe Gamache
            Last updater:
            Spring Issuemaster
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              1 year, 20 weeks, 3 days ago