core
core copied to clipboard
EscalationThread not working consistently
This is on dotcms.com
We have this workflow:

We have these contents in this workflow step that are not getting "escalated"

Here are the results of the SQL that the EscalationThread calls to find out if it needs to run:
dotcms=> select workflow_task.id from workflow_task join workflow_step on (workflow_task.status=workflow_step.id)
dotcms.com_3x-> where workflow_step.resolved=false and workflow_step.escalation_enable=true and now()>workflow_task.mod_date+
dotcms.com_3x-> cast(cast(workflow_step.escalation_time as varchar(20))||' seconds' as interval) ;
id
----
(0 rows)
dotcms=>
PR: https://github.com/dotCMS/core/pull/7771
Fix is working. Tested on: 3.2 Nightly build 2015-05-22 16:41/ Ubuntu 14.04 // Postgres // Firefox SQL is showing appropriate results when calling EscalationThread

It looks like contents in workflow step are getting escalated according to workflow

Added TC http://qa.dotcms.com/index.php?/cases/view/59165