Skip to content
Open
Show file tree
Hide file tree
Changes from 9 commits
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions docs/0-11-0/architecture/trigger-types.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,30 @@ iii.register_trigger(RegisterTriggerInput { trigger_type: "http".into(), functio
</Tab>
</Tabs>

## Registration errors

When the engine cannot register a trigger — most commonly because the trigger type's worker is not active in the project — it sends a `TriggerRegistrationResult` with an `error` body back to the worker that initiated the request. The SDK logs the error at `ERROR` level so the user sees it during development.

For built-in trigger types (`http`, `cron`, `subscribe`, `state`, `durable:subscriber`, `stream`, `log`), the error message includes the install command for the missing worker. For unknown trigger types that are not built-in, the error message points to the workers directory at <https://workers.iii.dev/>.
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated

Example log line when `iii-http` is not active:

```
[iii] Trigger registration failed for "1c1b…" (http): Trigger type "http" not found — worker iii-http is missing. Run: iii worker add iii-http
```

Example log line for an unknown non-built-in trigger type:

```
[iii] Trigger registration failed for "1c1b…" (my-custom-trigger): Trigger type "my-custom-trigger" not found. Search for a worker that provides this trigger type at https://workers.iii.dev/
```

Logging targets per SDK:

- **Node** — `console.error`
- **Python** — the `iii` logger, level `ERROR`
- **Rust** — `tracing::error!`

## Trigger Pipeline

```mermaid
Expand Down
Loading
Loading