You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Understanding Joget Deadline

Assuming the "System Settings > Process Deadline Checker Interval" is 1 hour, Joget will check and run all 100 pending instances 10 per batch, complete all the processes, then wait 1 hour (that's the interval). Repeat this cycle and run all pending instances, on completion wait 1 hour then repeat the cycle. If the Joget server has many pending processes, the cycle time will be longer and may push the next cycle to start at a later time. BTW setting a short 1-second internal time may increase the CPU load and data IO in your Joget server, which may cause a performance hit. We would recommend an internal timer of 30 seconds or longer.


In Joget DX, as an added benefit, you can use Multi Tools Process Tool to run threads concurrently. For any deadline tasks that are not relevant to data integrity, you can wrap those tools used in deadline within Multi-Tools & select the "Run Mode" property to "Run tools concurrently in multiple threads". This can improve the Joget performance.


FAQ

If you see the following error:

The process with Id=xxxxxx is closed, and can't be checked for deadlines

The explanation is as follows:

The deadline checker will grab every running process instances which have an un-executed deadline and add it to the checking waitlist. When the deadline checker checks the process instance one by one, the deployment will abort the process instance and print an exception message. The deadline for the closed process instance will not be checked by the deadline checker in the next (future) execution. The un-executed deadline records in the SHKDEADLINES table will not check nor execute once the process instance is closed. So this error is not an issue and is harmless.


Related Documentation

Deadlines and Escalations under Caution

Download App

There is an app attached that is able to help you check how many deadlines are waiting.

APP_deadlineAgentCheck-1.jwa

More information regarding the app:

The "List of Deadlines activated" menu will display the lists of pending instances and whether it has been executed or stopped.
The "Check" menu will display whether the deadline checker thread is running or stopped.

If Deadline Checker Thread Stops

The App is developed for MySQL/Mari

If Deadline Checker Thread Stops

If for some reason or other the deadline checker thread stops for some reason or other, you can restart it by just resubmitting the "General Settings" page.

  • No labels