Apify Run Queue
by lexis-solutions
Apify utility to queue runs until memory is available. Workaround to memory exceeded errors on Apify. This actor will retry starting actor starts with...
Opens on Apify.com
About Apify Run Queue
Apify utility to queue runs until memory is available. Workaround to memory exceeded errors on Apify. This actor will retry starting actor starts with a delay. Open source and free!
What does this actor do?
Apify Run Queue is a web scraping and automation tool available on the Apify platform. It's designed to help you extract data and automate tasks efficiently in the cloud.
Key Features
- Cloud-based execution - no local setup required
- Scalable infrastructure for large-scale operations
- API access for integration with your applications
- Built-in proxy rotation and anti-blocking measures
- Scheduled runs and webhooks for automation
How to Use
- Click "Try This Actor" to open it on Apify
- Create a free Apify account if you don't have one
- Configure the input parameters as needed
- Run the actor and download your results
Documentation
A utility actor that runs a list of actors with a retry mechanism. Avoids memory limit exceeded errors on Apify due to running too many runs in parallel.
## Problem Statement đ¤ You have a large number of runs you want to start on Apify. However, sometimes your memory limit is exceeded and Apify will not let you start any more runs, and you end up with a lot of failed runs. ## Solution đĄ You can use this actor to run your list of actors in parallel, and it will retry the actors that fail due to memory limit exceeded errors. ## How it works đ¤ - The actor will start running the actors one by one (âšī¸ but won't wait for them to finish). If an actor fails due to a memory limit exceeded error, the actor will wait for some time (default = 30 seconds) and retry. - The actor will keep track of the number of retries and the total number of runs. - The actor will run until all actors have started successfully, or failed due to a non-memory limit error (bad input, etc). ## Disclaimer â ī¸ 1. This actor will not return results from the actors. Use webhooks to get the results from the actors. 2. This actor will run until all actors have started successfully or failed due to a non-memory limit error. This means the run time can be very long. To avoid disruptions, set the actor timeout (under Actor > Settings) to a reasonable value. You can keep the memory limit low, as the actor is just doing scheduling and not processing any data. ## Input đĨ The input is a JSON array of actor calls. Each actor call is an object with the following properties: - invocationId: (optional) Your custom ID for the invocation. You can use this to match input and output. - actorId: The ID of the actor to run. - input: The input to pass to the actor. - retryDelaySecs: The delay in seconds between retries. - timeoutSecs: The timeout in seconds for the actor call. - maxItems: The maximum number of items to process. - memory: The memory in MB to allocate for the actor call. - build: The build to use for the actor call. - webhooks: The webhooks to use for the actor call. - isTask: Whether the actor call is a task. If true, the actorId must be the ID of a task. ## Output đ¤ The output is a JSON array of actor calls. Each actor call is an object with the following properties: - actorId: The ID of the actor/task to run. - success: Whether the actor call was successful. - runId: The ID of the run. - retries: The number of retries. - error: The error message. If the actor call was successful, the error is null. ## Example Input đ json { "actorCalls": [ { "actorId": "apify/website-content-crawler", "invocationId": "my-custom-id", "input": { "startUrls": [ { "url": "https://www.apify.com", "label": "apify.com" } ] }, "retryDelaySecs": 30, "timeoutSecs": 300, "maxItems": 100, "memory": 2048, "webhooks": [ { "eventTypes": ["ACTOR.RUN.SUCCEEDED", "ACTOR.RUN.FAILED"], "requestUrl": "https://example.com/webhook" } ] } ] } ## Example Output đ¤ json [ { "invocationId": "my-custom-id", "actorId": "apify/website-content-crawler", "success": true, "runId": "run_123", "retries": 0, "error": null } ] ## FAQ ### Doesn't Apify have a built-in retry mechanism? Not yet. This actor is a workaround to avoid memory limit exceeded errors on Apify. ### Can I use this actor for free? Yes, you can use this actor for free. However, you will be charged for your usage on Apify. ### How do I know how many runs I can start in parallel? Your account is limited by how many GBs of RAM you have in your plan. Each actor consumes a set amount of RAM (configurable). You can calculate how many runs you can start in parallel by dividing your RAM by the RAM consumption of the actors you want to run. --- Got feedback or need an extension? Lexis Solutions is a certified Apify Expert. We can help you with custom solutions or data extraction projects. Contact us on our website www.lexis.solutions or LinkedIn. Happy to help!
Categories
Common Use Cases
Market Research
Gather competitive intelligence and market data
Lead Generation
Extract contact information for sales outreach
Price Monitoring
Track competitor pricing and product changes
Content Aggregation
Collect and organize content from multiple sources
Ready to Get Started?
Try Apify Run Queue now on Apify. Free tier available with no credit card required.
Start Free TrialActor Information
- Developer
- lexis-solutions
- Pricing
- Paid
- Total Runs
- 2,966
- Active Users
- 19
Related Actors
Web Scraper
by apify
Cheerio Scraper
by apify
Website Content Crawler
by apify
Legacy PhantomJS Crawler
by apify
Apify provides a cloud platform for web scraping, data extraction, and automation. Build and run web scrapers in the cloud.
Learn more about ApifyNeed Professional Help?
Couldn't solve your problem? Hire a verified specialist on Fiverr to get it done quickly and professionally.
Trusted by millions | Money-back guarantee | 24/7 Support