Actor picture

Actor Build Starter

fjvs0283/actor-batch-builder

Run builds for multiple actors in your account simultaneously. This can be useful when many actors in a given project have been updated. For example, the documentation might have been updated in 50 actors. This tool will help you trigger actor builds for all 50 at once.

No credit card required

Author's avatarFrancisco Villarreal
  • Modified
  • Users3
  • Runs330
Actor picture
Actor Build Starter

Introduction

This actor provides the capability to run actor builds for multiple actors in your Apify account. This can be useful in cases where several actors have been updated and they need to be re-built to reflect the latest changes. An example would be when updating the documentation for multiple actors in a given project.

The actor calls the actor build process for each target actor via API calls. It then periodically checks for the finished builds to fetch the status and other related data.

Cost of usage

The actor is very cost-effective to run. It will consume approximately 1-2 compute units for every 15,000 actor builds.

Input

There are three modes for fetching the target actors to be built. The first is by providing a string for matching all actors that contain the string in their name:

{
    "batchType": "actorNameContains",
    "actorNameContains": "my-actor"
}

The second is providing an array of actor IDs:

{
    "batchType": "actorIds",
    "actorIds": [
        "abc",
        "abc",
        "abc"
    ]
}

The third option is for building all actors availale in the account:

{
    "batchType": "all"
}

Note that in all three scenarios any actors in the account that do not have the required access permissions will be skipped.

Output

The actor stores the build data along with the actor name and id for each target actor in the default dataset:

[
  {
    "id": "clvyb0YFfI62KRV5F",
    "status": "SUCCEEDED",
    "startedAt": "2021-11-06T22:16:17.531Z",
    "finishedAt": "2021-11-06T22:16:29.816Z",
    "meta": {
      "origin": "API"
    },
    "actorId": "4PSW9rUi7vvhJfbLr",
    "actorName": "my-actor"
  }
]

The actor also saves some run statistics in the key-value stores under "STATS":

{
  "total": 16,
  "failed": 0,
  "succeeded": 16,
  "requests": 56
}

Industries

See how Actor Build Starter is used in industries around the world