drobnikj/executions-queue

This act process queue of executions. If the act is finished it send mail with queue state. input attributes: - action (String) - use value "startQueue" to start queue - maxParallelsExecutions (Number) - how many executions can run in parallels - finishedHookMailTo (String|Array) - mail(s) where act sends notification when finish - finishWebhookUrl (String) - Url where act sends POST request when finished., - finishWebhookData (Object) - Data which sends act to finishWebhookUrl with queue info. - queue (Array) - array of executions you want to run in queue, one execution should contain: - crawlerId (String) - It should be crawler customId or crawler internal id (_id) - settings (Object) - you can overwrite defautl crawler setting for execution with that attribute

Modified
Last run
Used 73 times

To run the actor, you'll need a free Apify account. Simply open the actor console by clicking the button below, modify the actor input configuration, click Run and get your results.

API

To run the actor from your code, send a HTTP POST request to the following API endpoint:

https://api.apify.com/v2/acts/drobnikj~executions-queue/runs?token=<YOUR_API_TOKEN>

The POST payload including its Content-Type header is passed as INPUT to the actor (usually application/json). The actor is started with the default options; you can override them using various URL query parameters.

Example
curl https://api.apify.com/v2/acts/drobnikj~executions-queue/runs?token=<YOUR_API_TOKEN> \
-d '{
  "action": "startQueue",
  "maxParallelsExecutions": 1,
  "finishedHookMailTo": ["jakub.drobnik@apify.com", "drobnik.j@gmail.com"],
  "finishWebhookUrl": "https://webhook.site/1610bfcc-b76c-4f85-a6e5-528b6a98fc88",
  "finishWebhookData": {
    "test": "Hello, world!"
  },
  "queue": [
    {
      "crawlerId": "H8Xo8nhNDXwEf3LFJ",
      "settings": {
        "maxCrawledPages": 1
      }
    },
    {
      "crawlerId": "H8Xo8nhNDXwEf3LFJ",
      "settings": {
        "maxCrawledPages": 1
      }
    },
    {
      "crawlerId": "H8Xo8nhNDXwEf3LFJ",
      "settings": {
        "maxCrawledPages": 1
      }
    }
  ]
}' \
-H 'Content-Type: application/json' \
-X POST

To use the API, you'll need to replace <YOUR_API_TOKEN> with the API token of your Apify account (view here).

For more information, view the list of actor API endpoints or the full API reference.

Scheduler

Do you need to run the actor periodically? You can easily create a schedule that will run the actor any time you want.