Skip to content

Conversation

tcely
Copy link
Contributor

@tcely tcely commented Jun 24, 2025

We are down to 8 tasks using the old system.
They were all moved to the end of the file.

One of the workers was removed as no more tasks were using it.

Cleaning up the results:

import django_huey
from pprint import pp
from sync.choices import Val, TaskQueue
pp( (lambda q, msg=None, remove_true=False: [ (n, k, v := q.get(peek=True, key=k), e := v.metadata.get('error') if hasattr(v, 'metadata') else v, 'Removed True' if remove_true and v is True and q.get(k) else 'Retained True', 'Removed' if msg and e and msg in e and q.get(k) else 'Retained') for n,k in enumerate(q.all_results(), start=1) ])(django_huey.get_queue(Val(TaskQueue.LIMIT)), ) )

@tcely tcely marked this pull request as ready for review June 24, 2025 14:53
@tcely tcely moved this to In Progress in Status Jun 24, 2025
@tcely tcely moved this from In Progress to Ready in Status Jun 24, 2025
@tcely tcely marked this pull request as draft June 24, 2025 19:14
@tcely tcely marked this pull request as ready for review June 24, 2025 23:29
@meeb
Copy link
Owner

meeb commented Jun 25, 2025

Nice work, thanks!

@meeb meeb merged commit 1c4da66 into meeb:main Jun 25, 2025
6 checks passed
@github-project-automation github-project-automation bot moved this from Ready to Done in Status Jun 25, 2025
@tcely tcely deleted the patch-4 branch June 25, 2025 06:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants