Documentation / Execution Environments

Follow one workflow across domains

Ingest → validate → publish: keep the definition, configure execution for each target.

Download the shared example

This small DAG passes JSON through three phases. The handler adapts edge input to the local/cloud runner context. It passes a sample document pointer through each phase. Download all files into one directory; Python 3 is required.

document.workflow.yaml · document.handlers.json · document.py · document.input.json

yaml
name: document-journey
version: 1.0.0
default_group: python-standard
phases:
  ingest:
    service: document
    mode: sync_lambda
    scope: root
  validate:
    service: document
    mode: sync_lambda
    scope: root
    requires: [ingest]
  publish:
    service: document
    mode: sync_lambda
    scope: root
    requires: [validate]
    terminal: true

1. Start local

shell
rippflow validate document.workflow.yaml --handlers document.handlers.json
rippflow dev document.workflow.yaml --handlers document.handlers.json --input document.input.json --report report.json

Expected: a completed report with the terminal publish phase.

2. Run on device / edge

On matching-architecture CI, set RIPPFLOW_EDGE_SDK to the SDK checkout built in the edge guide, then package the same definition and handler. This script example declares Python 3 as a target dependency; the native sensor example packages a static handler.

shell
"$RIPPFLOW_EDGE_SDK/target/debug/rippflow" build edge --target x86_64-unknown-linux-musl --runtime-source "$RIPPFLOW_EDGE_SDK" --build-cache "$RIPPFLOW_EDGE_SDK/target" --workflow-def document.workflow.yaml --handlers document.handlers.json --external-runtime python3 --env dev --features sqlite,license --out dist/document-edge
./document-edge run --input '{"document":"sample.pdf"}' --db state.db --json
./document-edge recover --db state.db --json

Copy the executable to the matching target with Python 3 installed. Expected: JSON reports a completed workflow with the document pointer preserved.

3. Scale in the cloud

Keep the DAG; package handlers for AWS and configure service/runtime group bindings through the cloud deployment journey. Admission and target-installation checks remain required. Cloud-only features added later can make the definition incompatible with edge.

Verified sources

Checked 2026-11-09.

Let's talk

Contact Rippflow

Tell us about your workflows, deployment or pricing.

We'll reply to your email.

Search docs

Search workflows, handlers and operations.