Skip to main content
apify.waitForRun waits for an Apify Actor run and returns its latest state.

Example

automations/apify-wait-for-run.automation.ts

Inputs

Output

Returns the latest run state. A timeout returns the still-running state; it does not abort the run. This action polls through Apify’s official client. Use the returned status to distinguish completion from a caller-defined wait limit.