Apify and Crawlee Official Forum

Updated 3 months ago

Resurrect Timed Out Actor via Javascript API SDK?

I have an integration configured to send a webhook event to my server when actor runs finish or time out or error out.

In the case of a time out, how do I use the Javascript API SDK to resurrect the run?
o
1 comment
Hi, take a look at https://docs.apify.com/api/client/js/reference/class/RunClient#resurrect

Example:
Plain Text
const apify = new ApifyClient({ token: 'APIFY_TOKEN' })
const run = apify.run('RUN_ID')
await run.ressurect()
Add a reply
Sign up and join the conversation on Discord