durabletaskscheduler

command
v1.0.0-beta3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2026 License: Apache-2.0 Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Durable Task Scheduler sample

Features

  • Connects a Durable Task Scheduler client and worker using DTS_CONNECTION_STRING.
  • Schedules an orchestration with an explicit sample-owned instance ID.
  • Passes typed orchestration input and validates typed activity output.
  • Cleans up only the orchestration instance created by this run.

Prerequisites

Start a Durable Task Scheduler endpoint or emulator and set:

export DTS_CONNECTION_STRING="Endpoint=http://localhost:8080;TaskHub=default;Authentication=None"

Run

go run ./samples/durabletaskscheduler

Expected result

The orchestration calls the SayHello activity for Tokyo, London, and Seattle, decodes the typed output, and verifies the exact greetings. On success it prints:

SAMPLE_OK durabletaskscheduler

Cleanup

The sample terminates if needed and recursively purges only its generated sample-durabletaskscheduler-* orchestration instance before shutting down.

Noninteractive command

DTS_CONNECTION_STRING="$DTS_CONNECTION_STRING" go run ./samples/durabletaskscheduler

Documentation

Overview

Command durabletaskscheduler demonstrates the basic Durable Task Scheduler client and worker flow with typed orchestration input and output.

export DTS_CONNECTION_STRING="Endpoint=http://localhost:8080;TaskHub=default;Authentication=None"
go run ./samples/durabletaskscheduler

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL