Actor picture

Resurrect run on Out of memory

lukaskrivka/resurrect-on-out-of-memory

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

No credit card required

Author's avatarLukáš Křivka
  • Modified
  • Users4
  • Runs76
Actor picture
Resurrect run 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
{
    "userId": {{userId}},
    "createdAt": {{createdAt}},
    "eventType": {{eventType}},
    "eventData": {{eventData}},
    "resource": {{resource}},
    "email": "myself@gmail.com"
}

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

Industries

See how Resurrect run on Out of memory is used in industries around the world