Skip to main content

Node.js SDK

The Node.js SDK for writing TaskDaemon handlers.

Installation

Basic Usage

Task Interface

Return Types

The SDK provides helper functions for creating results:
Or construct the result object directly:

Async Handlers

Handlers can be async:

Complete Example

Error Handling

Uncaught exceptions are automatically converted to non-retryable errors:

Dockerfile

Or for JavaScript:

Handler Configuration