Batch Runner avatar
Batch Runner
Try for free

No credit card required

View all Actors
Batch Runner

Batch Runner

useful-tools/batch-runner
Try for free

No credit card required

Actor for starting several Runs from single Input. It also has capability to merge the Dataset items from the created batch.

The code examples below show how to run the Actor and get its results. To run the code, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token, which you can find under Settings > Integrations in Apify Console. Learn mode

Node.js

Python

curl

1# Set API token
2API_TOKEN=<YOUR_API_TOKEN>
3
4# Prepare Actor input
5cat > input.json <<'EOF'
6{
7  "batch": [
8    {
9      "actorId": "useful-tools/wait-and-finish",
10      "input": {
11        "minWaitTime": 30,
12        "dataset": {
13          "items": [
14            {
15              "key": "value1"
16            }
17          ]
18        }
19      }
20    },
21    {
22      "actorId": "useful-tools/wait-and-finish",
23      "input": {
24        "dataset": {
25          "items": [
26            {
27              "key": "value1"
28            },
29            {
30              "key": "value2"
31            }
32          ]
33        }
34      }
35    }
36  ],
37  "maxConcurrency": 25,
38  "maxMemoryMb": 32768
39}
40EOF
41
42# Run the Actor using an HTTP API
43# See the full API reference at https://docs.apify.com/api/v2
44curl "https://api.apify.com/v2/acts/useful-tools~batch-runner/runs?token=$API_TOKEN" \
45  -X POST \
46  -d @input.json \
47  -H 'Content-Type: application/json'
Developer
Community logoMaintained by Community
Actor metrics
  • 2 monthly users
  • 61.2% runs succeeded
  • Created in Sep 2023
  • Modified about 20 hours ago

You might also like these Actors