Skip to content
Trigora
Start building →

Start execution

Terminal window
trigora start approval
trigora start research --input '["tcc", 10]'
trigora start approval --remote

<program> is the program id. --input is optional JSON. A JSON array is the ordered argument vector. A single JSON value is one argument. Omitting --input sends {}. See Programs.

This command targets trigora dev by default. Add --remote to target Trigora Cloud.

const run = await trigora.start("research", ["tcc", 10]);

start returns a handle, not the Program’s return value. The handle’s result() waits for completion. If the Program hits waitForEvent, result() keeps polling until you send.

from trigora_client import start
run = start("research", ["tcc", 10])

A token selects Cloud. Otherwise this uses local trigora dev. See Python client.

Unknown program ids fail the request. The Execution is not created. A Program that throws before a durable boundary fails the Execution. A Program that reaches a wait stays waiting and does not count as failure.