conductor icon indicating copy to clipboard operation
conductor copied to clipboard

POST /workflow/{name} response waits until workflow has completed

Open timoly opened this issue 9 years ago • 3 comments

Is it a bug or feature that when starting a workflow using rest api POST /workflow/foo?&correlationId=foobar the workflow id is only returned after the workflow has already completed or failed. If this is indeed by design, are there any plans to include maybe a parameter to indicate that the workflow should be started in background? My test workflow is made up of http tasks which take about 20 seconds in total to complete.

timoly avatar Apr 07 '17 11:04 timoly

@timoly this is true when all the tasks are system tasks such as HTTP. We are addressing this in the upcoming version allowing for these to be executed asynchronously.

v1r3n avatar Apr 07 '17 20:04 v1r3n

@timbozo ,

Even i had same query. 1 more thing i found out was, though the swagger was running for 1st start click, i was able to click for more starts. what i mean to say is you can click 5 times to start workflow 5 times ( 5 work flow instances), but returns only one of the workflow id and i assume its first 1.

amoolya19 avatar Apr 10 '17 11:04 amoolya19

@amoolya19 swagger will return the last response. it will not accumulate the responses from each click and show.

v1r3n avatar Apr 11 '17 05:04 v1r3n