plainblack.com
Username Password
search
Bookmark and Share

    

Phantom workflow not causing any Spectre errors

User vanjwilson
Date 10/19/2011 8:43 am
Views 322
Rating 0    Rate [
|
]
Previous · Next
User Message
vanjwilson
strange problem: SendQueuedEmail... workflow was not running (mailQueue table contains entries), Spectre was running, Spectre tests passed, added logging to workflow module which was never triggered, finally increased log level to WARN and got:
WebGUI:Operation::Cron::www_runCronJob[295] - Could not create workflow
instance for workflowId 'pbworkflow000000000007' from taskId
'pbcron0000000000000004': It is a singleton workflow and is still
running from the last invocation.
found this entry in WorkflowInstance table:
+------------------------+------------------------+-------------------+----------+-----------+------------+-------------------+--------------+------------+------------+-----------+
| instanceId | workflowId | currentActivityId |
priority | className | methodName | parameters | runningSince |
lastUpdate | lastStatus | noSession |
+------------------------+------------------------+-------------------+----------+-----------+------------+-------------------+--------------+------------+------------+-----------+
| 4s4_U0qpYfbnXeMprwu2wg | pbworkflow000000000007 | NULL |
3 | NULL | NULL | {"parameters":{}} | 1316799643 |
1316799643 | NULL | 0 |
+------------------------+------------------------+-------------------+----------+-----------+------------+-------------------+--------------+------------+------------+-----------+
1 row in set (0.00 sec)
workflow has been hung since 9/23, does anybody know why Spectre tests passed?

--- (Edited on 10/19/2011 8:43 am [GMT-0500] by vanjwilson) ---



Back to Top
Rate [
|
]
 
 
vanjwilson

perlDreamer gave the answer via the #webgui IRC channel:

there's a spectre bug that causes singleton workflows to hang.

we've fixed various aspects of it, but it still exists
the work around is to make a unix cronjob that restart spectre every few hours
this will cause spectre to read the Workflow Instance table, find the hung workflow, and process it

--- (Edited on 10/19/2011 9:43 am [GMT-0500] by vanjwilson) ---



Back to Top
Rate [
|
]
 
 
© 2014 Plain Black Corporation | All Rights Reserved