How to get response from a long running webjob in

2019-08-25 02:53发布

I have a web-job running a long-running console application. I am using the WebAvtivity to run the same in an Azure Pipeline and there is a dependant web-job next in the pipeline. When I am starting the pipeline the first job responses 202 and moves to next whereas I want it to wait till the first gets completed.

Is there a way to wait till I get 200 response of poll to the first web job to check the status?

Thanks for any help in advance!

1条回答
forever°为你锁心
2楼-- · 2019-08-25 03:35

You may want to share how you are triggering the WebJob function in order for others to help.

I would suggest to look at the tasks "Invoke REST API" or "Invoke Azure Function"

Those tasks are built for the type of needs you are looking for as I guess your WebJob is using HTTP triggers.

You then can either parse the response or use a callback.

查看更多
登录 后发表回答