Skip to main content

Temporal adapter for taskbridge-fastapi TaskExecutor contract

Project description

Temporal Adapter (backend/adapters/temporal)

Temporal integration for TaskBridge backend extension points.

This package implements TaskExecutor without introducing Temporal dependencies into backend/taskbridge-fastapi.

Scope

  • TemporalTaskExecutor.submit_task() -> Temporal start_workflow
  • TemporalTaskExecutor.request_cancellation() -> workflow cancel or signal
  • mapping helper from Temporal workflow updates to TaskEvent shape

Durable vs ephemeral boundaries

Temporal should keep durable workflow state:

  • workflow variables/checkpoints
  • retries and failure history
  • orchestration decisions and domain progress internals

TaskBridge transport should keep ephemeral client stream events:

  • TASK_PROGRESS and TASK_MESSAGE for UI feedback
  • TASK_COMPLETED / TASK_FAILED / TASK_CANCELLED terminals

Guidance:

  • emit progress events only at meaningful checkpoints (avoid noisy per-step spam)
  • keep payloads compact and client-facing
  • keep heavy domain state in Temporal workflow storage, not in event stream payloads

Configuration

Use TemporalExecutorConfig:

  • task_queue
  • workflow
  • workflow_id_prefix
  • cancellation_mode (cancel or signal)
  • start_timeout_seconds
  • workflow_input_mapper (host-controlled mapper TaskRecord -> workflow input)

Local checks

From this directory:

uv sync --group dev
uv run ruff check
uv run ruff format --check
uv run pytest

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

taskbridge_temporal_adapter-0.1.0.tar.gz (47.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

taskbridge_temporal_adapter-0.1.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file taskbridge_temporal_adapter-0.1.0.tar.gz.

File metadata

  • Download URL: taskbridge_temporal_adapter-0.1.0.tar.gz
  • Upload date:
  • Size: 47.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for taskbridge_temporal_adapter-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6987b200a04214801e6815178b87119455e4fbbbc6cce059c23d62dc0ad74871
MD5 7e1635bbab4c7c62f0bcdda26e3cd1ba
BLAKE2b-256 e3e8d74265d708fa02a63dffe2fcd417e572a6c51fd8d5776a82ac808c697f3e

See more details on using hashes here.

File details

Details for the file taskbridge_temporal_adapter-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: taskbridge_temporal_adapter-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for taskbridge_temporal_adapter-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a84fc68ff34f3b77b33141fe67796ec8500fd5b7504d427b7696941788b5ea83
MD5 f95e0a4e45524b33202de6339519bdfb
BLAKE2b-256 15acef5842fe65163165c461761d3e6a71d982fb5b1269b7d3c6492362d2f1a1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page