Actor Build Starter avatar

Actor Build Starter

Try for free

No credit card required

Go to Store
Actor Build Starter

Actor Build Starter

fjvs0283/actor-batch-builder
Try for free

No credit card required

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.

Actor Batch Builder

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:

1{
2    "batchType": "actorNameContains",
3    "actorNameContains": "my-actor"
4}

The second is providing an array of actor IDs:

1{
2    "batchType": "actorIds",
3    "actorIds": [
4        "abc",
5        "abc",
6        "abc"
7    ]
8}

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

1{
2    "batchType": "all"
3}

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:

1[
2  {
3    "id": "clvyb0YFfI62KRV5F",
4    "status": "SUCCEEDED",
5    "startedAt": "2021-11-06T22:16:17.531Z",
6    "finishedAt": "2021-11-06T22:16:29.816Z",
7    "meta": {
8      "origin": "API"
9    },
10    "actorId": "4PSW9rUi7vvhJfbLr",
11    "actorName": "my-actor"
12  }
13]

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

1{
2  "total": 16,
3  "failed": 0,
4  "succeeded": 16,
5  "requests": 56
6}
Developer
Maintained by Community

Actor Metrics

  • 1 monthly user

  • 2 stars

  • >99% runs succeeded

  • Created in Oct 2021

  • Modified 2 years ago