Skip to content

Commit 7370136

Browse files
committed
docs(skills): rename queue trigger type to durable:subscriber
Update skills and references to match PR #1422 rename: - Trigger type 'queue' → 'durable:subscriber' in built-in type lists - Updated in 4 SKILL.md files and 5 reference file comments Unchanged (correct as-is): - TriggerAction.Enqueue SDK API name - IIITrigger::Queue Rust SDK enum - queue_configs config key - iii::queue::redrive function ID - General 'queue' concept in descriptions
1 parent b39f1d2 commit 7370136

9 files changed

Lines changed: 10 additions & 10 deletions

File tree

skills/iii-custom-triggers/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Use the concepts below when they fit the task. Not every custom trigger needs al
1818
- The handler receives a **TriggerConfig** containing `id`, `function_id`, and `config`
1919
- When the external event fires, call `iii.trigger({ function_id, payload: event })` to invoke the registered function
2020
- **unregisterTriggerType** cleans up when the trigger type is no longer needed
21-
- Do not reuse built-in trigger type names: `http`, `cron`, `queue`, `state`, `stream`, `subscribe`
21+
- Do not reuse built-in trigger type names: `http`, `cron`, `durable:subscriber`, `state`, `stream`, `subscribe`
2222

2323
## Architecture
2424

skills/iii-functions-and-triggers/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Comparable to: Serverless function runtimes, Lambda, Cloud Functions
1515
Use the concepts below when they fit the task. Not every worker needs all of them.
1616

1717
- A **Function** is an async handler registered with a unique ID
18-
- A **Trigger** binds an event source to a function — types include http, queue, cron, state, stream, and subscribe
18+
- A **Trigger** binds an event source to a function — types include http, durable:subscriber, cron, state, stream, and subscribe
1919
- Functions invoke other functions via `trigger()` regardless of language or worker location
2020
- The engine handles serialization, routing, and delivery automatically
2121
- HTTP-invoked functions wrap external endpoints as callable function IDs

skills/iii-trigger-conditions/SKILL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Use the concepts below when they fit the task. Not every trigger needs a conditi
2020
- The engine calls the condition function before the handler; the handler runs only if `true`
2121
- Attach a condition to any trigger type via `condition_function_id` in the trigger config
2222
- The condition function receives the same event data as the handler would
23-
- Works with all trigger types: http, queue, cron, state, stream, subscribe
23+
- Works with all trigger types: http, durable:subscriber, cron, state, stream, subscribe
2424

2525
## Architecture
2626

@@ -58,7 +58,7 @@ Code using this pattern commonly includes, when relevant:
5858
Use the adaptations below when they apply to the task.
5959

6060
- Replace the condition logic with your business rules (threshold checks, role validation, feature flags)
61-
- Conditions work on all trigger types — use them on HTTP triggers for auth guards, on queue triggers for message filtering
61+
- Conditions work on all trigger types — use them on HTTP triggers for auth guards, on durable:subscriber triggers for message filtering
6262
- Keep condition functions lightweight and fast since they run on every trigger fire
6363
- Combine multiple business rules in a single condition function rather than chaining conditions
6464
- Condition functions can call `trigger()` internally to check state or other functions

skills/references/custom-triggers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Comparable to: Custom event adapters, webhook connectors, polling integrators
44
*
55
* Demonstrates how to define entirely new trigger types beyond the built-in
6-
* http, queue, cron, state, and subscribe triggers. A custom trigger type
6+
* http, durable:subscriber, cron, state, and subscribe triggers. A custom trigger type
77
* registers handler callbacks that the engine invokes when triggers of that
88
* type are created or removed, letting you bridge any external event source
99
* (webhooks, file-system watchers, pollers) into the iii function graph.

skills/references/custom-triggers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Comparable to: Custom event adapters, webhook connectors, polling integrators
44
55
Demonstrates how to define entirely new trigger types beyond the built-in
6-
http, queue, cron, state, and subscribe triggers. A custom trigger type
6+
http, durable:subscriber, cron, state, and subscribe triggers. A custom trigger type
77
registers handler callbacks that the engine invokes when triggers of that
88
type are created or removed, letting you bridge any external event source
99
(webhooks, pollers) into the iii function graph.

skills/references/custom-triggers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/// Comparable to: Custom event adapters, webhook connectors, polling integrators
33
///
44
/// Demonstrates how to define entirely new trigger types beyond the built-in
5-
/// http, queue, cron, state, and subscribe triggers. A custom trigger type
5+
/// http, durable:subscriber, cron, state, and subscribe triggers. A custom trigger type
66
/// registers handler callbacks that the engine invokes when triggers of that
77
/// type are created or removed, letting you bridge any external event source
88
/// (webhooks, pollers) into the iii function graph.

skills/references/functions-and-triggers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Comparable to: Core primitives of iii
44
*
55
* Demonstrates every fundamental building block: registering functions,
6-
* binding triggers of each built-in type (http, queue, cron, state, subscribe),
6+
* binding triggers of each built-in type (http, durable:subscriber, cron, state, subscribe),
77
* cross-function invocation, fire-and-forget calls, and external HTTP-invoked
88
* functions via HttpInvocationConfig.
99
*

skills/references/functions-and-triggers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Comparable to: Core primitives of iii
44
55
Demonstrates every fundamental building block in Python: registering functions,
6-
binding triggers of each built-in type (http, queue, cron, state, subscribe),
6+
binding triggers of each built-in type (http, durable:subscriber, cron, state, subscribe),
77
cross-function invocation, fire-and-forget calls, and external HTTP-invoked
88
functions via HttpInvocationConfig.
99

skills/references/functions-and-triggers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* Demonstrates every fundamental building block in Rust: registering functions
66
* with the RegisterFunction builder, binding triggers of each built-in type
7-
* (http, queue, cron, state, subscribe), cross-function invocation, and
7+
* (http, durable:subscriber, cron, state, subscribe), cross-function invocation, and
88
* fire-and-forget calls.
99
*
1010
* How-to references:

0 commit comments

Comments
 (0)