Repository navigation
fix(scheduler): Keep scheduled tasks out of threads - #1888
Merged
Merged
Conversation
Co-Authored-By: David Cramer <[email protected]>
Co-Authored-By: David Cramer <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-Authored-By: David Cramer <[email protected]>
dcramer
marked this pull request as ready for review
September 21, 2026 14:29
dcramer
approved these changes
Sep 21, 2026
dcramer
added a commit
that referenced
this pull request
Sep 22, 2026
Extends #1888 to event automations: deliver to channels or DMs, never threads. Watches stay thread-bound. Migration 0044 removes stored thread destinations. Reads also handle rows written by older workers during deployment; new writes reject thread fields. Already queued dispatches keep their original destination. <!-- junior-request-attribution:start --> via **David Cramer**. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:slack%3AC0B595QDZLL%3A1790114797.672819 --> -- [View Junior Session](https://junior-prod.sentry.dev/conversations/slack%3AC0B595QDZLL%3A1790114797.672819) [[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AC0B595QDZLL%3A1790114797.672819/?project=4510944073809921) <!-- junior-session-footer:end --> --------- Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: David Cramer <[email protected]>
dcramer
added a commit
that referenced
this pull request
Oct 8, 2026
A scheduled automation run posted its report at the channel top level. A PR Watch it created then posted "getsentry/yc-scraper#5 merged." as a second top-level message instead of replying in the report's thread. **Root cause** Since #1888 and #1891, automation runs have a channel-level Location with no thread. The run's first reply is bound to the Conversation, so user replies in that thread already route back to it. Watch Turns ignored that binding and posted to the channel again on every event. Event-only Conversations had the same problem. **Fix** When a Turn's Slack Location has no thread, reply under the first Slack Message bound to the Conversation in that channel. If nothing is bound yet, the first reply still starts the thread. **Known gap** When a run's only output is a DM to its creator, Watch replies still go to the channel the automation was created in. Tracked in #2014. <!-- junior-request-attribution:start --> via **David Cramer**. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:slack%3AC0B595QDZLL%3A1791479373.496159 --> -- [View Junior Session](https://junior-prod.sentry.dev/conversations/slack%3AC0B595QDZLL%3A1791479373.496159) [[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AC0B595QDZLL%3A1791479373.496159/?project=4510944073809921) <!-- junior-session-footer:end --> --------- Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: David Cramer <[email protected]>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Scheduled Automations must target Slack channels or direct messages, not threads.
This removes the
destination: "channel"tool option because channel delivery is now the default. Migration0043removesthreadTsfrom stored Automation Destinations and message outcomes. Reads also remove thread fields written by older workers during deployment.via David Cramer.
--
View Junior Session [Sentry]