cancel
Showing results for 
Search instead for 
Did you mean: 

JobExecutor activated, IntermediateTimerCatchEvent not fired - sometimes

kayj
Champ in-the-making
Champ in-the-making
Hi,

I've got some issues with the JobExecutor and an IntermediateTimerCatchEvent, which isn't fired. Sometimes. My setup:

* Activiti 5.17.0.
* The BPMN Model is pretty simple: StartEvent –> ScriptTask –> IntermediateTimerCatchEvent –> EndEvent.
* "Time Duration" of the TimerCatchEvent is set to "PT1M30S".
* The JobExecutor is activated. 

As mentioned the "TIMER_FIRED" event isn't thrown sometimes even though the JobExecutor is activated. Searching the forum for similar issues I came across this post: https://forums.activiti.org/content/how-do-timer-intermediate-catching-event-work
Since we're also using 2 activiti engines with 1 DB, I'm wondering if this issue might be related to our setup.

* engine A: JobExecutor activated
* engine B: no JobExecutor

It is clearly defined which bpmn model is processed by engine A and B. Is it possible that, if engine A starts the process and runs into an IntermediateCatchEvent, that engine B executes the job and fires the event even though the JobExecutor is not activated in engine B?

I'm wondering why it works sometimes. The log files are identical and there seem to be no difference, besides of the missing "TIMER_FIRED" event. Any ideas what might cause this behaviour?

Thanks, Kathrin
2 REPLIES 2

kayj
Champ in-the-making
Champ in-the-making
I totally forgot about engine C, which is used in our Dashboard and also has the JobExecutor activated.
Is it possible to somehow assure that a specific Job is executed by one specific Engine?

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi KayJ,

It is not supported in the default jobExecutor implementation. (you can always implement yours. Or just configure job handlers.)

Regards
Martin