Commit 8d720cb7 authored by Janez K's avatar Janez K

another test

parent 4e698c2a
......@@ -41,7 +41,7 @@ def runWidgetAsync(widget):
widget.run(True)
@task()
def runTest(stream,workflow):
def runTest(return_string):
import time
time.sleep(3.2)
return "Done!"
\ No newline at end of file
return return_string
\ No newline at end of file
......@@ -1346,10 +1346,9 @@ def widget_inputs(request, widget_id):
@never_cache
def workflow_results(request,workflow_id):
w = get_object_or_404(Workflow, pk=workflow_id)
from streams.models import Stream
from workflows.tasks import runTest
return_string = request.GET.get('result')
s = Stream()
a = runTest.delay(s,w)
a = runTest.delay(return_string)
r = a.wait()
#return s.execute(workflow=w)
return {"result":r}
......
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