File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 49
49
from Products .Reportek .constants import DEFAULT_CATALOG
50
50
from Products .Reportek .exceptions import ApplicationException
51
51
from Products .Reportek .rabbitmq import queue_msg
52
+ from Products .Reportek .RemoteRabbitMQQAApplication import (
53
+ RemoteRabbitMQQAApplication ,
54
+ )
52
55
from Products .Reportek .RepUtils import getToolByName
53
56
54
57
try :
@@ -1114,7 +1117,11 @@ def manageWorkitemCreation(self, workitem_id):
1114
1117
self .wf_status = activity .get_wf_status ()
1115
1118
self .reindexObject ()
1116
1119
self .startAutomaticApplication (workitem_id )
1117
- if rmq and not activity .getId ().startswith ("AutomaticQA" ):
1120
+ application_url = self .getApplicationUrl (workitem_id )
1121
+ application = self .restrictedTraverse (application_url )
1122
+ if rmq and not isinstance (
1123
+ application , RemoteRabbitMQQAApplication
1124
+ ):
1118
1125
queue_msg (
1119
1126
"{}|{}" .format (
1120
1127
self .absolute_url (), self .get_freq (workitem_id )
You can’t perform that action at this time.
0 commit comments