Aug 14th, 2012, 10:38 AM
Documentation suggestion for Task Execution and Scheduling
The Task Execution and Scheduling Task Execution and Scheduling documentation might benefit from a little clarification on the purpose of thread pools for schedulers. As written, it wasn't clear to me that a scheduled job would not reschedule itself in the scheduler pool until it had complete its work. A quick blurb that might help clear it up would be-
"Tasks submitted to the scheduler's thread pool will not be rescheduled until the task has completed, and therefor will not run concurrently. If concurrent behavior is expected, the scheduled method must also be annotated with @Async and an executor must be configured."
Having figured this out, the remainder of the documentation makes perfect sense, but didn't understand why a scheduled task would not run on multiple threads until I had traced through the code and understood the scheduler behavior.
Tags for this Thread