Skip to content

Commit 7b5c776

Browse files
improvement(sim-trigger): change execution terminology to run (#5033)
1 parent 1205730 commit 7b5c776

3 files changed

Lines changed: 13 additions & 14 deletions

File tree

apps/docs/content/docs/en/workflows/triggers/sim.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ Pick one event per Sim trigger block:
1515
**Plain events** — fire on every occurrence:
1616

1717
<ul className="list-disc space-y-1 pl-6">
18-
<li><strong>Execution Error</strong>: a watched workflow's run failed</li>
19-
<li><strong>Execution Success</strong>: a watched workflow's run completed successfully</li>
18+
<li><strong>Run Error</strong>: a watched workflow's run failed</li>
19+
<li><strong>Run Success</strong>: a watched workflow's run completed successfully</li>
2020
<li><strong>Workflow Deployed</strong>: a watched workflow was deployed (including redeploys and version rollbacks)</li>
2121
<li><strong>Workflow Undeployed</strong>: a watched workflow was taken offline</li>
2222
</ul>
@@ -41,7 +41,7 @@ By default the trigger watches every workflow in the workspace. Select specific
4141

4242
All events include `event`, `timestamp`, `workflowId`, and `workflowName` (the source workflow). Additional fields depend on the event type:
4343

44-
<Tabs items={['Execution Events', 'Alert Conditions', 'Workflow Deployed']}>
44+
<Tabs items={['Run Events', 'Alert Conditions', 'Workflow Deployed']}>
4545
<Tab>
4646
<ul className="list-disc space-y-1 pl-6">
4747
<li><strong>runId</strong>: the run that completed</li>

apps/sim/blocks/blocks/sim_workspace_event.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const SimWorkspaceEventBlock: BlockConfig = {
1010
type: 'sim_workspace_event',
1111
name: 'Sim',
1212
description:
13-
'Run this workflow when workspace events occur: execution errors or successes, deployments, and alert conditions like latency or cost spikes.',
13+
'Run this workflow when workspace events occur: run errors or successes, deployments, and alert conditions like latency or cost spikes.',
1414
category: 'triggers',
1515
icon: SimTriggerIcon,
1616
bgColor: '#33C482',
@@ -19,7 +19,7 @@ export const SimWorkspaceEventBlock: BlockConfig = {
1919
bestPractices: `
2020
- Events are scoped to this workspace. Pick an event type, then optionally narrow to specific workflows (empty selection watches all).
2121
- This workflow must be deployed for the trigger to fire, and it never receives events about itself.
22-
- Executions started by this trigger never emit workspace events, so side-effect workflows cannot chain or loop.
22+
- Runs started by this trigger never emit workspace events, so side-effect workflows cannot chain or loop.
2323
- Alert conditions (latency spike, cost threshold, consecutive failures, ...) fire at most once per cooldown window; plain events fire on every occurrence.
2424
- Compose any blocks downstream (Slack, email, webhooks, custom logic) to act on the event payload.
2525
`,

apps/sim/triggers/sim/workspace-event.ts

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const simWorkspaceEventTrigger: TriggerConfig = {
1313
name: 'Sim',
1414
provider: SIM_TRIGGER_PROVIDER,
1515
description:
16-
'Triggers when workspace events occur: execution errors or successes, deployments, and alert conditions like latency or cost spikes',
16+
'Triggers when workspace events occur: run errors or successes, deployments, and alert conditions like latency or cost spikes',
1717
version: '1.0.0',
1818
icon: SimTriggerIcon,
1919

@@ -23,8 +23,8 @@ export const simWorkspaceEventTrigger: TriggerConfig = {
2323
title: 'Event',
2424
type: 'dropdown',
2525
options: [
26-
{ id: 'execution_error', label: 'Execution Error', group: 'Events' },
27-
{ id: 'execution_success', label: 'Execution Success', group: 'Events' },
26+
{ id: 'execution_error', label: 'Run Error', group: 'Events' },
27+
{ id: 'execution_success', label: 'Run Success', group: 'Events' },
2828
{ id: 'workflow_deployed', label: 'Workflow Deployed', group: 'Events' },
2929
{ id: 'workflow_undeployed', label: 'Workflow Undeployed', group: 'Events' },
3030
{ id: 'consecutive_failures', label: 'Consecutive Failures', group: 'Alert Conditions' },
@@ -59,7 +59,7 @@ export const simWorkspaceEventTrigger: TriggerConfig = {
5959
type: 'short-input',
6060
placeholder: String(SIM_RULE_DEFAULTS.consecutiveFailures),
6161
defaultValue: String(SIM_RULE_DEFAULTS.consecutiveFailures),
62-
description: 'Fire after this many consecutive failed executions.',
62+
description: 'Fire after this many consecutive failed runs.',
6363
required: { field: 'eventType', value: 'consecutive_failures' },
6464
mode: 'trigger',
6565
condition: { field: 'eventType', value: 'consecutive_failures' },
@@ -82,7 +82,7 @@ export const simWorkspaceEventTrigger: TriggerConfig = {
8282
type: 'short-input',
8383
placeholder: String(SIM_RULE_DEFAULTS.durationThresholdMs),
8484
defaultValue: String(SIM_RULE_DEFAULTS.durationThresholdMs),
85-
description: 'Fire when an execution takes longer than this many milliseconds.',
85+
description: 'Fire when a run takes longer than this many milliseconds.',
8686
required: { field: 'eventType', value: 'latency_threshold' },
8787
mode: 'trigger',
8888
condition: { field: 'eventType', value: 'latency_threshold' },
@@ -93,8 +93,7 @@ export const simWorkspaceEventTrigger: TriggerConfig = {
9393
type: 'short-input',
9494
placeholder: String(SIM_RULE_DEFAULTS.latencySpikePercent),
9595
defaultValue: String(SIM_RULE_DEFAULTS.latencySpikePercent),
96-
description:
97-
'Fire when an execution is this much slower than the average over the time window.',
96+
description: 'Fire when a run is this much slower than the average over the time window.',
9897
required: { field: 'eventType', value: 'latency_spike' },
9998
mode: 'trigger',
10099
condition: { field: 'eventType', value: 'latency_spike' },
@@ -144,7 +143,7 @@ export const simWorkspaceEventTrigger: TriggerConfig = {
144143
type: 'short-input',
145144
placeholder: String(SIM_RULE_DEFAULTS.inactivityHours),
146145
defaultValue: String(SIM_RULE_DEFAULTS.inactivityHours),
147-
description: 'Fire when a watched workflow has no executions for this many hours.',
146+
description: 'Fire when a watched workflow has no runs for this many hours.',
148147
required: { field: 'eventType', value: 'no_activity' },
149148
mode: 'trigger',
150149
condition: { field: 'eventType', value: 'no_activity' },
@@ -158,7 +157,7 @@ export const simWorkspaceEventTrigger: TriggerConfig = {
158157
'Choose the workspace event or alert condition to react to',
159158
'Optionally narrow it to specific workflows — leaving the selection empty watches every workflow (this workflow is always excluded; it never triggers itself)',
160159
'Deploy this workflow — events only fire for deployed workflows',
161-
'Executions started by this trigger never emit workspace events, so chains and loops are not possible',
160+
'Runs started by this trigger never emit workspace events, so chains and loops are not possible',
162161
]
163162
.map(
164163
(instruction, index) =>

0 commit comments

Comments
 (0)