Skip to content

perf(workflows): Avoid a query on Organization in delayed_workflow#115965

Merged
kcons merged 1 commit into
masterfrom
kcons/cacheharder2
May 20, 2026
Merged

perf(workflows): Avoid a query on Organization in delayed_workflow#115965
kcons merged 1 commit into
masterfrom
kcons/cacheharder2

Conversation

@kcons
Copy link
Copy Markdown
Member

@kcons kcons commented May 20, 2026

This query should be quite fast, but we have clear example cases of it occasionally being multi-second, and it's easy enough to cache, so we should cache it.

@kcons kcons requested a review from a team as a code owner May 20, 2026 22:12
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label May 20, 2026
Comment thread src/sentry/workflow_engine/processors/delayed_workflow.py
Copy link
Copy Markdown
Contributor

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit f5d4fbb. Configure here.

Comment thread src/sentry/workflow_engine/processors/delayed_workflow.py
Comment thread src/sentry/workflow_engine/processors/delayed_workflow.py
@kcons kcons merged commit d77f40f into master May 20, 2026
63 checks passed
@kcons kcons deleted the kcons/cacheharder2 branch May 20, 2026 22:27
JonasBa pushed a commit that referenced this pull request May 21, 2026
…115965)

This query should be quite fast, but we have clear example cases of it
occasionally being multi-second, and it's easy enough to cache, so we
should cache it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants