Skip to content

[Improve] Keep clean custom automation runs quiet - #1339

Draft
roomote-roomote[bot] wants to merge 1 commit into
developfrom
feature/quiet-custom-automations-23enhc23eix69
Draft

[Improve] Keep clean custom automation runs quiet#1339
roomote-roomote[bot] wants to merge 1 commit into
developfrom
feature/quiet-custom-automations-23enhc23eix69

Conversation

@roomote-roomote

Copy link
Copy Markdown
Contributor

​Opened on behalf of @mrubens. Follow up by mentioning @roomote-roomote, in the web UI, or in Slack.

What changed

  • Custom automations with chat destinations can finish clean runs without creating a report thread.
  • Actionable findings, explicitly requested reports, durable blockers, and required input still report normally.
  • Work-item execution tasks retain their required terminal closeout behavior.
  • Automation settings show the five most recent launched tasks with state, trigger, timestamp, and task links, plus a link to older task history.

Why this change was made

Frequent checks lose value when every successful no-action run creates another notification. Separating execution from reporting keeps high-frequency automations useful without making quiet runs invisible.

Impact

Teams can schedule custom automations more frequently without proportional chat noise. Completed runs remain inspectable in automation settings and the task history, while findings and blockers continue to reach the configured destination.

Screenshots

A destination-configured automation keeps clean runs quiet while showing five recent launched tasks and linking to older task history.

@roomote-community

roomote-community Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

1 issue outstanding. See task

  • Avoid repeated unindexed scans of custom-automation task history from the settings page.

Reviewed a896005

Comment on lines +156 to +158
where: and(
eq(tasks.initiatorAutomation, 'custom_automation'),
eq(tasks.actorExternalId, automationId),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This lookup runs once per configured custom automation on every settings-page load. tasks only has an index on initiatorAutomation, so each query must scan/filter the whole custom_automation task population by actorExternalId and then order it before taking five rows. With up to 25 hourly automations, that cost grows quickly. Add a matching composite (ideally partial) index, or fetch all recent runs in one batched query.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant