Skip to content

ref(issues): use TaskProducer as the occurrence producer in tasks (round 2)#117081

Merged
bmckerry merged 12 commits into
masterfrom
ben/occurrence-taskproducer
Jun 8, 2026
Merged

ref(issues): use TaskProducer as the occurrence producer in tasks (round 2)#117081
bmckerry merged 12 commits into
masterfrom
ben/occurrence-taskproducer

Conversation

@bmckerry

@bmckerry bmckerry commented Jun 8, 2026

Copy link
Copy Markdown
Member

Same as #116788, which I panic-reverted after seeing CI failures which wound up just being test flakes.

@bmckerry bmckerry requested review from a team as code owners June 8, 2026 15:05
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Jun 8, 2026
@bmckerry bmckerry changed the title Ben/occurrence taskproducer ref(issues): use TaskProducer as the occurrence producer in tasks Jun 8, 2026
@bmckerry bmckerry changed the title ref(issues): use TaskProducer as the occurrence producer in tasks ref(issues): use TaskProducer as the occurrence producer in tasks (round 2) Jun 8, 2026
@bmckerry bmckerry enabled auto-merge (squash) June 8, 2026 15:13
@bmckerry bmckerry merged commit b35e79d into master Jun 8, 2026
84 checks passed
@bmckerry bmckerry deleted the ben/occurrence-taskproducer branch June 8, 2026 15:30
bmckerry added a commit that referenced this pull request Jun 16, 2026
`KafkaPublisher` was a deprecated Kafka producer API which was only
still used in replay deletion tasks and replay linking in postprocess.
This PR moves all instances where `KafkaPublisher` was used over to the
existing `sentry.replays.lib.kafka.publish_replay_event` function, which
is backed by `SingletonProducer`. It also fixes corresponding tests, and
completely deletes `KafkaPublisher` from the codebase.

This is a step towards migrating replay-related tasks to use
taskbroker-client's `TaskProducer` abstraction (similar to what I've
done in #117081,
#117107,
#117360). I'll open up another
PR stacked on top of this one that adds the rollout code for
`TaskProducer`.
sehr-m pushed a commit that referenced this pull request Jun 23, 2026
`KafkaPublisher` was a deprecated Kafka producer API which was only
still used in replay deletion tasks and replay linking in postprocess.
This PR moves all instances where `KafkaPublisher` was used over to the
existing `sentry.replays.lib.kafka.publish_replay_event` function, which
is backed by `SingletonProducer`. It also fixes corresponding tests, and
completely deletes `KafkaPublisher` from the codebase.

This is a step towards migrating replay-related tasks to use
taskbroker-client's `TaskProducer` abstraction (similar to what I've
done in #117081,
#117107,
#117360). I'll open up another
PR stacked on top of this one that adds the rollout code for
`TaskProducer`.
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.

4 participants