> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Resurrect Actor run

> Starts a new run from a finished Apify Actor run and its storage resources.

`apify.resurrectRun` starts a new run from a finished Apify Actor run and its storage resources.

## Example

```ts automations/apify-resurrect-run.automation.ts theme={null}
import { automation, onHttpRequest } from "automate.ax"
import { apify } from "automate.ax/apify"

export default automation("Resurrect Actor run", () => {
  onHttpRequest({ scope: "automation" })

  apify.resurrectRun({
    runId: "run-id",
    memoryMbytes: 2048,
    timeoutSecs: 300,
  })
})
```

## Inputs

`runId` is required. You can override `build`, `maxItems`, `maxTotalChargeUsd`, `memoryMbytes`, `restartOnError`, and `timeoutSecs` with the same constraints as [Start Actor](/reference/integrations/apify/actions/start-actor).

## Output

Returns the new Actor run created by Apify.

Resurrection reuses the finished run's input and storage resources but creates a distinct run. Repeat calls create additional runs.
