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

Migrate queue's queue to a more visible form #2940

Closed
djmitche opened this issue May 29, 2020 · 4 comments
Closed

Migrate queue's queue to a more visible form #2940

djmitche opened this issue May 29, 2020 · 4 comments

Comments

@djmitche
Copy link
Collaborator

The queue uses tc-lib-azqueue for its core "queueing" operations. This supports both queues for tasks for workers, and delay queues for things like deadlines and task claims.

Because it mixes so many things in there, this queue is not easily introspected to find out, say, what tasks are pending for a particular task queue.

Let's find a way to do task queueing that's linked to the tasks table in a way that allows querying (#2939) the tasks in the queue. The pendingTasks API method should be upgraded in the process to take account of cancelled tasks (https://bugzilla.mozilla.org/show_bug.cgi?id=1434851).

Requires #2932.

@djmitche djmitche added blocked Blocked on something else Estimate: Medium blocker This is blocking another task labels May 29, 2020
@djmitche djmitche added this to Backlog in Postgres Migration Phase 2 via automation May 29, 2020
@djmitche
Copy link
Collaborator Author

Note that postgres supports NOTIFY/LISTEN, allowing us to avoid polling (or for safety's sake, polling very infrequently) the DB when nothing is changing.

@ccooper ccooper added this to the Postgres Phase 2 milestone Jun 4, 2020
@helfi92 helfi92 removed Estimate: Medium blocked Blocked on something else blocker This is blocking another task labels Jun 18, 2020
@djmitche djmitche removed this from the Postgres Phase 2 milestone Jul 18, 2020
@lotas lotas self-assigned this Nov 25, 2022
@lotas
Copy link
Contributor

lotas commented Sep 12, 2023

current thought progress documented in this gist https://gist.github.com/lotas/57779afe067e4f8eb586f37fe25016c9

@lotas
Copy link
Contributor

lotas commented Sep 21, 2023

Execution of this transition:

after that #2939 will add new functionality to introspect queues and change task priorities

@lotas
Copy link
Contributor

lotas commented Apr 3, 2024

I've extracted that last piece into as separate ticket and will close this one #6950

@lotas lotas closed this as completed Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants