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?
1 Reply
fascinating-indigo
fascinating-indigo13mo ago
Hi, take a look at https://docs.apify.com/api/client/js/reference/class/RunClient#resurrect Example:
const apify = new ApifyClient({ token: 'APIFY_TOKEN' })
const run = apify.run('RUN_ID')
await run.ressurect()
const apify = new ApifyClient({ token: 'APIFY_TOKEN' })
const run = apify.run('RUN_ID')
await run.ressurect()

Did you find this page helpful?