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()-> Temporalstart_workflowTemporalTaskExecutor.request_cancellation()-> workflowcancelorsignal- mapping helper from Temporal workflow updates to
TaskEventshape
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_PROGRESSandTASK_MESSAGEfor UI feedbackTASK_COMPLETED/TASK_FAILED/TASK_CANCELLEDterminals
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_queueworkflowworkflow_id_prefixcancellation_mode(cancelorsignal)start_timeout_secondsworkflow_input_mapper(host-controlled mapperTaskRecord -> 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6987b200a04214801e6815178b87119455e4fbbbc6cce059c23d62dc0ad74871
|
|
| MD5 |
7e1635bbab4c7c62f0bcdda26e3cd1ba
|
|
| BLAKE2b-256 |
e3e8d74265d708fa02a63dffe2fcd417e572a6c51fd8d5776a82ac808c697f3e
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a84fc68ff34f3b77b33141fe67796ec8500fd5b7504d427b7696941788b5ea83
|
|
| MD5 |
f95e0a4e45524b33202de6339519bdfb
|
|
| BLAKE2b-256 |
15acef5842fe65163165c461761d3e6a71d982fb5b1269b7d3c6492362d2f1a1
|