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 RunJobs not selecting the correct queue shard #2036

Merged
merged 7 commits into from
Dec 18, 2024

Conversation

BrunoScheufler
Copy link
Contributor

Description

RunJobs was hardcoded to use the primary queue shard, which defaults to the default shard for services that didn't configure the primary queue shard environment variable. This means we never returned items from the proper queue shards for finalize/Cancel invocations.

Motivation

Type of change (choose one)

  • Chore (refactors, upgrades, etc.)
  • Bug fix (non-breaking change that fixes an issue)
  • Security fix (non-breaking change that fixes a potential vulnerability)
  • Docs
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality not to work as expected)

Checklist

  • I've linked any associated issues to this PR.
  • I've tested my own changes.

Check our Pull Request Guidelines

Copy link

vercel bot commented Dec 17, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
ui ⬜️ Ignored (Inspect) Visit Preview Dec 18, 2024 3:49pm

Copy link
Member

@djfarrelly djfarrelly left a comment

Choose a reason for hiding this comment

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

I think QueueShardSelector needs to be implemented by default in the CLI. I may be wrong, but we need to confirm prior to merging.

@BrunoScheufler BrunoScheufler merged commit ddae3b7 into main Dec 18, 2024
11 checks passed
@BrunoScheufler BrunoScheufler deleted the bruno/fix-cancellation branch December 18, 2024 16:20
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.

3 participants