You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently there's "Cancel Current Item" and "Cancel and Clear All Items". Would it be possible to "Cancel All But the Current Item"? My computer is slow and sometimes I want the current item to finish but none of the others.
Alternatives
No response
Additional Content
No response
The text was updated successfully, but these errors were encountered:
This would be a good issue for a new contributor. Broad strokes of suggested implementation:
Add a new method to SessionQueueBase called cancel_all_except_current.
Add a SQLite implementation in SqliteSessionQueue. You can follow the pattern in the clear method, with an extra condition to exclude any in-progress queue items.
Regenerate the frontend types. From the repo root, run make frontend-typegen. If you don't have make (e.g. you are on Windows), you can restart the server and run pnpm typegen.
Add the endpoint in queue.ts, following the patterns in this file. Export the mutation hook.
Add a menu item for this new feature in <QueueActionsMenuButton />. The existing "clear" action uses a modal to confirm the clear request. I think we'd want that for the new feature too, but I could be convinced otherwise.
Please ping me on discord or here if you want to implement this to check in, and if you have any questions.
Same here! I would very much like to have that button too.
In case someone looks at this in the future. I found that it also needs an api route definition for cancel_all_except_current in session_queue.py before make frontend-typegen works.
Is there an existing issue for this?
Contact Details
magnusviri
What should this feature add?
Currently there's "Cancel Current Item" and "Cancel and Clear All Items". Would it be possible to "Cancel All But the Current Item"? My computer is slow and sometimes I want the current item to finish but none of the others.
Alternatives
No response
Additional Content
No response
The text was updated successfully, but these errors were encountered: