Skip to main content

Hybrid local or Kind to GCP

Cross-runtime handoff

These are two separate two-activity workflows. The producer writes handoff.txt either on the AkôFlow server host or in a Kind cluster. A cloud activity on an on-demand GCP worker checks the file's exact content and writes receipt.txt. This tests a real data dependency across runtimes, not merely a network estimate.

Cloud resources and cost

Running this example provisions a GCP VM and may incur charges. The checked-in plans contain IDs from a specific test instance and a manual predicted value; they are not portable plans or calibrated forecasts. Review the project, network access, capacity target, and VM cleanup before submitting.

Prerequisites

  1. Connect and test a GCP environment. Save it, then wait for asynchronous resource discovery to complete and confirm the cloud target is usable.
  2. For the Kind variant, prepare a Kind cluster and AkôFlow access. The local variant runs its producer on the AkôFlow server host.
  3. Register an execution scope, network topology, and resources that cover both the producer and GCP worker. In the checked-in plans these are goal-hybrid-scope, goal-hybrid-network, and goal-gcp-worker-e2-small. The instance's environment, resource, and runtime IDs must match the plans and submission script, or you must edit those files for your instance.
  4. Install curl and jq on the submission host, obtain API access, and allow the server's transfer path to reach the GCP worker. Use only the network access required by your deployment.

Download the inputs

The full bundle below includes the workflows, plans, runner, and an explicit description of the environment, scope, topology, runtime bindings, and cloud resource that must be registered in the target instance. Those cloud values deliberately remain instance-specific rather than shipping unusable credentials or project IDs.

Inspect the run in Desktop

Use Desktop connected to the same AkôFlow server as the API submission. First confirm that the saved environment and discovered cloud worker are healthy. After submission, open the workflow's run and check both activities, the data transfer, the output files, and the cloud instance lifecycle.

This bundle was submitted through the API. A Desktop-only setup and submission of the full hybrid configuration has not been verified.

Expected evidence

In the verified runs on 2026-09-13, each producer and consumer completed, the consumer read the transferred file, and the GCP VM was destroyed afterward:

Source → destinationRunData transferredObserved makespan
Local → GCPgoal-local-cloud-run-v621 B70.051 s
Kind → GCPgoal-kind-cloud-run-v120 B131.993 s

Those are observations from one GCP project and an e2-small target, not guaranteed timings for another environment. The plans' predicted.makespanSeconds: 120 and cost are manual placeholder values; do not use them to assess scheduler accuracy. Check the run's activity and transfer records, then verify the VM is absent from both AkôFlow's cloud-instance list and GCP Compute Engine. If cleanup is delayed or a run fails, investigate the active transfer and VM lifecycle before retrying.