Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 0.2
-
Fix Version/s: 0.3
-
Component/s: None
-
Labels:None
-
Environment:grails 1.0.2, java 1.6.0_02, linux
Description
def concurrent = false, causes job's not to get executed..
class ConcTestJob {
def timeout = 1000l
def concurrent = false
def execute() { int me = ++counter; println(">> $me") Thread.sleep(2500) println("<< $me") }
private static int counter;
}
- with this code, the job is never executed
- changing to "concurrent = true", causes i to run, concurrenlty
- chaning to "def synchronized execute() {.." causes the desired behaviour
Issue Links
| This issue depends on: | ||||
| GPQUARTZ-27 | Jobs are executed before full application bootstrap and throws exception during Hibernate Session binding |
|
|
|
Looks like early job execution appears again (first job execution is started before application completes its startup process -> exception -> job hangs up). Adding def startDelay = 5000 seems like a workaround for the problem.
I'll look deeper into that.