Skip to main content

Built and signed on GitHub Actions

Works with
This package works with DenoIt is unknown whether this package works with Cloudflare Workers, Node.js, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
This package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
•JSR Score100%•
License
Apache-2.0
•
Downloads296/wk
•
Publisheda day ago (0.0.10)

A provider-agnostic message queue for NetScript: enqueue and drain background jobs through one MessageQueue contract, auto-discovering a RabbitMQ, Redis, or Deno KV backend from the Aspire environment.

enum QueueErrorCode

Error codes for queue operations.

Members

CONFIGURATION_ERROR = "CONFIGURATION_ERROR"

Queue configuration error.

CONNECTION_FAILED = "CONNECTION_FAILED"

Failed to connect to queue backend.

DEQUEUE_FAILED = "DEQUEUE_FAILED"

Failed to dequeue message.

ENQUEUE_FAILED = "ENQUEUE_FAILED"

Failed to enqueue message.

HANDLER_ERROR = "HANDLER_ERROR"

Message handler threw an error.

PROVIDER_NOT_AVAILABLE = "PROVIDER_NOT_AVAILABLE"

Provider not available or not supported.

TIMEOUT = "TIMEOUT"

Operation timed out.

VALIDATION_ERROR = "VALIDATION_ERROR"

Message validation failed (Zod schema).

Add Package

deno add jsr:@netscript/queue

Import symbol

import { QueueErrorCode } from "@netscript/queue/errors";
or

Import directly with a jsr specifier

import { QueueErrorCode } from "jsr:@netscript/queue@^0.0.10/errors";