Job Queue Recovery Tester
Pricing
$0.05 / actor start
Job Queue Recovery Tester
Rehearse interrupted jobs in a real SQLite queue. Verify recovery, retry exhaustion, tenant separation and expiry, then export a runnable scenario.
Job Queue Recovery Tester
Pricing
$0.05 / actor start
Rehearse interrupted jobs in a real SQLite queue. Verify recovery, retry exhaustion, tenant separation and expiry, then export a runnable scenario.
You can access the Job Queue Recovery Tester programmatically from your own applications by using the Apify API. You can also choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in API & Integrations in Apify Console.
1import { ApifyClient } from 'apify-client';2
3// Initialize the ApifyClient with your Apify API token4// Replace the '<YOUR_API_TOKEN>' with your token5const client = new ApifyClient({6 token: '<YOUR_API_TOKEN>',7});8
9// Prepare Actor input10const input = {11 "payload": {12 "jobs": [13 {14 "text": "recovery fixture",15 "interruptions": 1,16 "expire": false17 },18 {19 "text": "expires",20 "interruptions": 0,21 "expire": true22 },23 {24 "text": "retry cap",25 "interruptions": 3,26 "expire": false27 }28 ]29 }30};31
32// Run the Actor and wait for it to finish33const run = await client.actor("autosecurelogin/private-job-portal-starter").call(input);34
35// Fetch and print Actor results from the run's dataset (if any)36console.log('Results from dataset');37console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);38const { items } = await client.dataset(run.defaultDatasetId).listItems();39items.forEach((item) => {40 console.dir(item);41});42
43// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docsThe Apify API client for JavaScript is the official library that allows you to use Job Queue Recovery Tester API in JavaScript or TypeScript, providing convenience functions and automatic retries on errors.
Install the apify-client
$npm install apify-clientOther API clients include: