How to check status of Actor initiated via API?

I have a use-case where users of my app are able to initiate a new crawl from my website's front-end. I'd like to be able to pass a "crawl status" back to the user so they don't feel like their waiting in the dark for the crawl to complete. Is there a way I can create a websock to a running Actor to provide my users with real-time feedback on the status of the Actor run? All I need is something like "Actor is running" | "Actor completed: 1 succeeded, 1 failed" | "Actor failed" Thanks in advance!
1 Reply
inland-turquoise
inland-turquoise12mo ago
Hey Ken, The best is to poll the run endpoint in an interval that makes sense for you (e.g. every 5 seconds) using the GET run via API or API client

Did you find this page helpful?