An invocation ends once its code execution finishes.
Streaming Status Updates
For real-time status monitoring, usefollow
to stream invocation events. This provides immediate updates as your invocation progresses and is more efficient than polling.
Example
Here’s an example showing how to handle streaming status updates:Polling Status Updates
Alternatively, you can poll the status endpoint usingretrieve
to check the invocation status periodically.