Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(worker): only apply processor cancel logic if cancel event is for current item #7416

Merged
merged 1 commit into from
Dec 2, 2024

Conversation

maryhipp
Copy link
Collaborator

@maryhipp maryhipp commented Dec 2, 2024

Summary

Fixes a bug in the session processor where a cancel event for any queue item was triggering the processor to cancel the current queue item.

Related Issues / Discussions

Closes #7414

QA Instructions

Queue up a batch of generations and cancel some at the end. The currently processing queue item should still finish and have expected output appear.

Merge Plan

Should be reviewed by @psychedelicious before merge

Checklist

  • The PR has a short but descriptive title, suitable for a changelog
  • Tests added / updated (if applicable)
  • Documentation added / updated (if applicable)
  • Updated What's New copy (if doing a release after this PR)

@github-actions github-actions bot added python PRs that change python files services PRs that change app services labels Dec 2, 2024
Copy link
Collaborator

@psychedelicious psychedelicious left a comment

Choose a reason for hiding this comment

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

Sweet good catch!

@psychedelicious psychedelicious merged commit a6be26e into main Dec 2, 2024
14 checks passed
@psychedelicious psychedelicious deleted the maryhipp/cancel-queue-item-bug branch December 2, 2024 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python PRs that change python files services PRs that change app services
Projects
None yet
2 participants