Commit c92cc4f9 authored by Janez K's avatar Janez K

bugfix

parent 57720e31
......@@ -653,10 +653,10 @@ class Widget(models.Model):
try:
if not self.abstract_widget is None:
if self.abstract_widget.windows_queue:
t = executeWidgetWithRequest.apply_async([self,input_dict,output_dict,request],queue="windows")
t = executeWidgetPostInteract.apply_async([self,input_dict,output_dict,request],queue="windows")
outputs = t.wait()
else:
outputs = executeWidgetWithRequest(self,input_dict,output_dict,request)
outputs = executeWidgetPostInteract(self,input_dict,output_dict,request)
else:
self.workflow_link.run()
except:
......
......@@ -31,6 +31,9 @@ def executeWidgetWithRequest(widget,input_dict,output_dict,request):
function_to_call = getattr(workflows.library,widget.abstract_widget.action)
return function_to_call(request,input_dict,output_dict)
@task()
def executeWidgetPostInteract(widget,input_dict,output_dict,request):
function_to_call = getattr(workflows.library,widget.abstract_widget.post_interact_action)
@task()
def runWidget(widget,offline):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment