Resurrect run on Out of memory avatar
Resurrect run on Out of memory
Try for free

No credit card required

View all Actors
Resurrect run on Out of memory

Resurrect run on Out of memory

lukaskrivka/resurrect-on-out-of-memory
Try for free

No credit card required

Simple helper actor to resurrect your runs when they run out of memory.

Resurrect on Out Of Memory

Simple helper actor to resurrect your runs when they run out of memory.

  1. This actor doesn't have any input, it should be only called via a webhook
  2. Go to the actor you want to monitor. Create a new webhook and set Event Types as RUN FAILED.
  3. Set this as a URL: https://api.apify.com/v2/acts/lukaskrivka~resurrect-on-out-of-memory/runs?token=YOUR_TOKEN (replace YOUR_TOKEN with your real API token that you can find in you Integrations tab)
  4. Optionally, you can provide an email notification by updating the webhook payload teamplate like this
1{
2    "userId": {{userId}},
3    "createdAt": {{createdAt}},
4    "eventType": {{eventType}},
5    "eventData": {{eventData}},
6    "resource": {{resource}},
7    "email": "myself@gmail.com"
8}

Everything stays the same, we just added one more line with "email": "myself@gmail.com"

Make sure that the out of memory case happens non-deterministically (only once a while). If it happens every time, this actor might put the run into endless resurrect loop

Developer
Maintained by Community
Actor metrics
  • 2 monthly users
  • 98.0% runs succeeded
  • 0.0 days response time
  • Created in Apr 2022
  • Modified about 2 years ago
Categories