kolibri icon indicating copy to clipboard operation
kolibri copied to clipboard

Worker never claims LOW priority jobs

Open rtibbles opened this issue 2 months ago โ€ข 5 comments

๐Ÿ™‚ Looking for an issue? Welcome! This issue is open for contribution. If this is the first time youโ€™re requesting an issue, please:

  • Read Contributing guidelines carefully. Pay extra attention to Using generative AI. Pull requests and comments that donโ€™t follow the guidelines wonโ€™t be answered.
  • Confirm that youโ€™ve read the guidelines in your comment.

Overview

The task worker never claims jobs enqueued at Priority.LOW, so they stay queued indefinitely. Network location connection retries and connection checks between two subset-of-users devices are enqueued at LOW, so a peer that fails one connection check is never checked again.

Complexity: Low Target branch: develop

Context

The Change

Regular worker slots should claim LOW jobs, ranked below REGULAR, instead of excluding them. The high-priority slot keeps its current behaviour.

Acceptance Criteria

General

  • [ ] With no HIGH or REGULAR job due, a free regular slot claims a due LOW job.
  • [ ] A regular slot claims due jobs in ranked order HIGH, then REGULAR, then LOW, regardless of the order they were queued.
  • [ ] While all regular slots are busy, the high-priority slot claims only HIGH jobs.
  • [ ] A network location connection retry deferred at LOW runs once it is due.

Testing

  • [ ] Each criterion above is covered by a test.

AI usage

Claude Code found the defect while reviewing task-runner changes and drafted this issue. I chose the intended behaviour (ranked HIGH, REGULAR, LOW) and the scope, and reviewed each section.

rtibbles avatar Sep 29 '26 04:09 rtibbles

Hi! ๐Ÿ‘‹

This issue is available for contribution and supports self-assignment. Here's how to get started:

  • Comment /assign to assign yourself to this issue
  • You can have up to 2 issues assigned at a time across all community repos
  • Dropping an issue has a 7-day cooldown before the slot opens up
  • Link your pull request to this issue when you submit it

๐Ÿ“– Read the Contributing guidelines before starting.

Are you preparing for Google Summer of Code? See our GSoC guidelines.

learning-equality-bot avatar Sep 29 '26 04:09 learning-equality-bot

/assign

saadgodikat avatar Sep 29 '26 05:09 saadgodikat

Hi! ๐Ÿ‘‹

You've been assigned to this issue. Here's what to do next:

  • Read the issue description carefully and make sure you understand the requirements
  • Link your pull request to this issue when you submit it
  • If you can no longer work on this, unassign yourself so others can pick it up

Good luck! ๐Ÿ˜Š

Are you preparing for Google Summer of Code? See our GSoC guidelines.

learning-equality-bot avatar Sep 29 '26 05:09 learning-equality-bot

``/assign

OnlyNewApps avatar Oct 02 '26 16:10 OnlyNewApps

Hi! ๐Ÿ‘‹

Thanks so much for your interest! This issue is already assigned. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues. If there are no unassigned 'help wanted' issues available, please wait until new ones are added.

We really appreciate your willingness to help. ๐Ÿ˜Š

Are you preparing for Google Summer of Code? See our GSoC guidelines.

learning-equality-bot avatar Oct 02 '26 16:10 learning-equality-bot