How can I Run Geoprocessing (asynchronous) without waiting on the result
As the title. I tried the Run Geoprocessing (asynchronous) activity to execute a process on the server and wish to move on with the reset steps in the workflow without waiting on the GP service result. However it seems the activity blocked the whole workflow, ping the GP service job status every second after it was submitted, till it got the result (either success or fail). I remember in WF4 in the GPservice activity there's an option to choose whether to wait on result or not for asynchronous GP services, but it's missing in WF5.
-
Hi Jack,
We have done a bit of experimentation with the idea of being able to run steps of a workflow asynchronously, carrying on without waiting for the result. However, we don't have any plans to add that in the immediate future. For now, there's no way to move beyond a step until it has finished.
0 -
An alternative solution would be to submit the GP request into a queue (e.g. table) and have a Task Scheduled Python script check the queue to submit to your GP. You can use something local like a SQLite database or publish a table in one of your feature services.
0 -
Thanks @Ken Lyon? and @Tom Neer? . Also realised the "No Wait on Server" option in the WF4 Geoprocessing activity not working neither despite the name as discussed here. I ended up excuting the GP service by Send a Web Request and it works for me.
0
Please sign in to leave a comment.
Comments
3 comments