Registry / devops / alaska-queue-array

alaska-queue-array

JSON →
library0.13.2jsnpmunverified

An in-memory array queue driver for the Alaska framework, version 0.13.2, intended only for development and testing. It stores queued tasks in a JavaScript array, which means data cannot be shared across multiple processes, is lost on process exit or crash, and may cause memory leaks. Its `pop(timeout)` function is not timely. No release cadence is defined. For production, use alaska-queue-redis or other drivers.

npm install alaska-queue-array
INSTALL
IMPORT
SIG · ALASKA-QUEUE-ARRAY
A
alaska-queue-array
devopsjavascriptv0.13.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
import alaskaQueueArray from 'alaska-queue-array'
const alaskaQueueArray = require('alaska-queue-array')
Package does not export a default; it's used as a driver type string, not imported directly.

Shows configuration of the array queue driver within the Alaska framework, setting the type, key, and idle count.

// This driver is configured as a string in the Alaska config, not imported directly. // Example app configuration: import {Alaska} from 'alaska'; const alaska = new Alaska(); alaska.init({ queues: { myQueue: { type: 'alaska-queue-array', key: 'myQueue', idle: 5 } } });
Debug
Known issues
gotchaThis driver is intended only for development. Data is not persisted and will be lost on process exit or crash.
fix
Use alaska-queue-redis or another persistent driver for production.
affects: >=0.1
gotchaQueued data cannot be shared across multiple node processes; only in-memory to a single process.
fix
Use a driver backed by a shared store (e.g., Redis) for multi-process scenarios.
affects: >=0.1
gotchaThe `pop(timeout)` function is not timely; it may return after the timeout or not at all.
fix
Do not rely on precise timeouts; redesign logic to be tolerant of delayed pops.
affects: >=0.1
gotchaThis driver may cause memory leaks due to unbounded queue growth.
fix
Limit queue size manually or use a production driver with built-in memory management.
affects: >=0.1
Errors
Common errors & fixes
Error: Cannot find module 'alaska-queue-array'
Package not installed.
fix
Run `npm install alaska-queue-array` or add it to package.json.
TypeError: queue.pop is not a function
Queue not properly configured or the wrong driver used.
fix
Ensure configuration has type: 'alaska-queue-array' and that the queue initializes correctly.
Warning: Using alaska-queue-array in production is not recommended
Developer using the array driver in production after reading documentation.
fix
Switch to a production-grade queue driver like alaska-queue-redis.
Upgrade
Version history
0.13.2latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
35 hits · last 30 days
node
26
OpenAI (training)
1
Resources
alaska-queue-array — npm install alaska-queue-array · libregistry