Apify icon

Apify

Apify API

Overview

This node interacts with the Apify API to resurrect a specific run of an Actor. It allows users to restart a previously executed Actor run by specifying the Actor ID and the Run ID. This is useful for scenarios where a user wants to rerun a particular task or workflow that was executed before, possibly with modifications such as different build versions, timeout settings, or memory limits.

Use Case Examples

  1. Resurrect a failed Actor run to retry processing with the same or updated parameters.
  2. Restart a previous data scraping or automation task to refresh results or fix issues.

Properties

Name Meaning
Actor ID The identifier of the Actor to resurrect a run for. It can be provided as an Actor ID, a tilde-separated owner's username and Actor name, or via URL or list selection.
Run ID The identifier of the specific run of the Actor to resurrect. It can be selected from a list, provided as a URL, or entered directly.
Build Optional specification of the Actor build to run, either by build tag or build number. Defaults to the build used in the original run.
Timeout Optional timeout for the resurrected run in seconds. Defaults to the timeout specified in the original run.
Memory Memory limit for the resurrected run in megabytes. Must be a power of 2 with a minimum of 128. Defaults to the memory limit of the original run.
Use Custom Body Boolean flag indicating whether to use a custom request body for the resurrection operation.

Output

JSON

  • runId - The ID of the resurrected run.
  • status - The status of the resurrected run.
  • build - The build version or tag used for the resurrected run.
  • memory - Memory allocated for the resurrected run.
  • timeout - Timeout setting for the resurrected run.
  • startTime - Timestamp when the resurrected run started.
  • endTime - Timestamp when the resurrected run ended or null if still running.

Dependencies

  • Requires Apify API access with an API key credential.

Troubleshooting

  • Ensure the Actor ID and Run ID are valid and correctly formatted; invalid IDs will cause errors.
  • Check that the API key credential has sufficient permissions to access and resurrect runs.
  • If specifying custom build, timeout, or memory, ensure values are valid and supported by Apify.
  • Timeout or memory settings that are too low may cause the run to fail or be terminated prematurely.

Links

Discussion