Skip to content

h7kanna/temporal-rust-worker

Repository files navigation

Temporal Rust SDK example

NOTE: This is not the official Rust SDK for Temporal, but based on a fork by Harsha Teja Kanna.

NOTE: This is a work in progress and experimental. The API is not stable and is subject to change.

Prerequisites

Build

cargo build

Docker build

docker build --build-arg="RUST_TARGET_ARCH=aarch64-unknown-linux-gnu" -t h7kanna/temporal-rust-worker .

Run

temporal server start-dev
cargo run # connects to port 7233 from temporal-frontend

In a separate terminal:

temporal workflow start --task-queue="example-task-queue" --type="sdk_example_workflow" --workflow-id="example_id" --input='{"code":"rust","kind":"typesafe"}'

Check the execution in the Temporal Web UI: http://localhost:8233/namespaces/default/workflows

Check out https://www.ekalavya.dev/ for more upcoming blogs on Temporal Rust SDK.

About

Temporal Rust SDK worker example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published