Apify Discord Mirror

Updated 5 months ago

Resurrect Timed Out Actor via Javascript API SDK?

At a glance

The community member has an integration that sends a webhook event when an actor run finishes, times out, or errors out. They are asking how to use the JavaScript API SDK to resurrect a run in the case of a timeout. Another community member suggests looking at the Apify documentation, which provides an example of how to use the run.ressurect() method to resurrect a run.

Useful resources
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