Skip to main content

Overview

A2ARemoteWorkflow wraps a remote workflow endpoint, making it callable like a local workflow.

Quick Start

import { A2ARemoteWorkflow } from "@radaros/core";

const remoteWorkflow = new A2ARemoteWorkflow({
  url: "https://api.example.com",
  name: "data-pipeline",
});

const result = await remoteWorkflow.run({ startDate: "2024-01-01" });
console.log(result);

Configuration

OptionTypeDefaultDescription
urlstringrequiredBase URL of the remote server
namestring"remote-workflow"Workflow name
headersRecord<string, string>Custom headers
timeoutMsnumber120000Request timeout