Skip to content
Trigora
Start building →

Send event

Terminal window
trigora send <execution-id> approved
trigora send <execution-id> approved --payload '{"ok":true}'
trigora send <execution-id> approved --remote

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

await run.send("approved", { ok: true });
await trigora.sendEvent(executionId, "approved", { ok: true });
run.send("approved", {"ok": True})

The event resolves the current waitForEvent / wait_for_event. The payload is the wait’s return value. Earlier effect outcomes stay committed. The Program continues after the wait.

event_mismatch when the Execution is not waiting on that name. You can send again with the name it is actually waiting on. Sending does not restart the Program.