Skip to main content

runtm-worker

Build and deploy worker for Runtm. See the self-hosting docs for deployment setup.

Pipeline

  1. Unzip artifact from storage
  2. Validate manifest against schema
  3. Create Fly app and allocate IPs
  4. Run flyctl deploy (builds AND deploys in one step)
    • Auto-generates fly.toml with optimized health checks
    • Builds on Fly's remote builders (fast, no local Docker)
    • Deploys to Fly Machine with health check verification
  5. Save provider resource and verify health
  6. Update deployment status + URL in DB
  7. Persist logs

Local Build (Fallback)

  1. Unzip artifact from storage
  2. Validate manifest against schema
  3. Build Docker container locally with BuildKit
  4. Push to Fly.io registry
  5. Create/update Fly Machine via Machines API
  6. Poll for health check
  7. Update deployment status + URL in DB
  8. Persist logs

Development

# Install dependencies
pip install -e ".[dev]"

# Run worker
python -m runtm_worker.main

# Run tests
pytest

Environment Variables

Variable Description Default
DATABASE_URL PostgreSQL connection string Required
REDIS_URL Redis connection string Required
FLY_API_TOKEN Fly.io API token Required
ARTIFACT_STORAGE_PATH Local artifact storage path /artifacts
ARTIFACT_STORAGE_BACKEND Storage backend: local or s3 local
BUCKET_NAME S3/Tigris bucket name (when backend=s3) -
AWS_ENDPOINT_URL_S3 S3 endpoint URL (e.g. https://fly.storage.tigris.dev) -
USE_REMOTE_BUILDER Use Fly's remote builder (faster) true

Providers

The worker uses a provider interface to support multiple deployment backends:

  • FlyProvider - Fly.io Machines (default)
  • Future: Cloud Run, etc.

Note: When using the remote builder (default), most deployment is handled by flyctl deploy. The FlyProvider is still used for app creation, IP allocation, machine listing, health verification, and custom domain management.

Metadata

Release files for runtm-worker 0.2.169

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for runtm-worker 0.2.169
File Size Uploaded Provenance Actions
runtm_worker-0.2.169.tar.gz 49.4 kB Without provenance Details for runtm_worker-0.2.169.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for runtm-worker 0.2.169
File Interpreter ABI Platform Actions
runtm_worker-0.2.169-py3-none-any.whl Python 3 none any Details for runtm_worker-0.2.169-py3-none-any.whl

Total release size: 94.6 kB

Release files / runtm_worker-0.2.169.tar.gz

Download URL runtm_worker-0.2.169.tar.gz
Size 49.4 kB
Tags Source
SHA-256 checksum
How to use checksums
1e82861185c01bdc1d8a4d7de3d8786e4eccaac3483e144da9c4073564ea5c05
BLAKE2b-256 checksum
How to use checksums
4d131c53de0168852da6568af13447ed7d03abb24f6e71e07cb58e8632956a7a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / runtm_worker-0.2.169-py3-none-any.whl

Download URL runtm_worker-0.2.169-py3-none-any.whl
Size 45.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a8f58b4c395b4ad27661759b6b8d0e8ac9d8c0acb10e2f9e347d73d1b6648ca3
BLAKE2b-256 checksum
How to use checksums
58df750af4ec6deffcffce5b8fc84b091c9236233b483652a9245100955ee46c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for runtm-worker 0.2.169

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.169 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page