So I’ve got a web client script which is basically:
1. do stuff
2. run billing generation/initialize receipt/whatever returns a run ID
3. (when 2 completes) do stuff that requires 2 to be done
3 can’t run until 2 completes. Right now I just loop until the log says it’s complete and call a SQL query that’s just a WAITFOR every repeat so it plays nice.
Is there a built-in/better way to wait for 2 to finish?