[GH-ISSUE #1414] FR: a way to cancel background jobs #898

Open
opened 2026-03-02 11:53:36 +03:00 by kerem · 5 comments
Owner

Originally created by @thiswillbeyourgithub on GitHub (May 16, 2025).
Original GitHub issue: https://github.com/karakeep-app/karakeep/issues/1414

Describe the feature you'd like

Hi,

Currently it does not seem possible to disable backgrounds jobs after I created them. For example I asked to redo all the ai tags of my library but want to change my mind and I can't really.

Edit: even worse: if I'm not mistaken during ollama requests the UI hangs so I had no choice but to give a broken address to forcefully cancel the job and have karakeep be responsive again.

Describe the benefits this would bring to existing Karakeep users

More flexibility.

Can the goal of this request already be achieved via other means?

I could change the url of the ollama endpoint to make it fail quickly but that's not very elegent.

Have you searched for an existing open/closed issue?

  • I have searched for existing issues and none cover my fundamental request

Additional context

No response

Originally created by @thiswillbeyourgithub on GitHub (May 16, 2025). Original GitHub issue: https://github.com/karakeep-app/karakeep/issues/1414 ### Describe the feature you'd like Hi, Currently it does not seem possible to disable backgrounds jobs after I created them. For example I asked to redo all the ai tags of my library but want to change my mind and I can't really. Edit: even worse: if I'm not mistaken during ollama requests the UI hangs so I had no choice but to give a broken address to forcefully cancel the job and have karakeep be responsive again. ### Describe the benefits this would bring to existing Karakeep users More flexibility. ### Can the goal of this request already be achieved via other means? I could change the url of the ollama endpoint to make it fail quickly but that's not very elegent. ### Have you searched for an existing open/closed issue? - [x] I have searched for existing issues and none cover my fundamental request ### Additional context _No response_
Author
Owner

@MohamedBassem commented on GitHub (May 17, 2025):

I think this is reasonable. I'm planning at some point to revamp the background jobs page, I can consider including this then 👍

<!-- gh-comment-id:2888450771 --> @MohamedBassem commented on GitHub (May 17, 2025): I think this is reasonable. I'm planning at some point to revamp the background jobs page, I can consider including this then 👍
Author
Owner

@borgogelli commented on GitHub (Jul 17, 2025):

So is there no any way to clear a crawler queue ?
Any shell command or sql query to execute ?

Image
<!-- gh-comment-id:3083339877 --> @borgogelli commented on GitHub (Jul 17, 2025): So is there no any way to clear a crawler queue ? Any shell command or sql query to execute ? <img width="593" height="213" alt="Image" src="https://github.com/user-attachments/assets/f8cb9550-f8b1-4b22-88a2-2fe5b6db736c" />
Author
Owner

@mblarsen commented on GitHub (Aug 20, 2025):

From within the container or wherever your data is.

apk add sqlite
cd /data
sqlite3 queue.db "DELETE FROM tasks;"

This will clear the queue.

<!-- gh-comment-id:3206068775 --> @mblarsen commented on GitHub (Aug 20, 2025): From within the container or wherever your data is. ```shell apk add sqlite cd /data sqlite3 queue.db "DELETE FROM tasks;" ``` This will clear the queue.
Author
Owner

@mratsim commented on GitHub (Sep 5, 2025):

It clears the queue but the pending/failed number of jobs is not reset to 0

Image Image

I only have 43K bookmarks so the number of pending should be number_of_bookmarks - bookmarks_queued

<!-- gh-comment-id:3258461781 --> @mratsim commented on GitHub (Sep 5, 2025): It clears the queue but the pending/failed number of jobs is not reset to 0 <img width="1078" height="810" alt="Image" src="https://github.com/user-attachments/assets/4ca4ed60-d298-4d63-b728-84bfd7b9b634" /> <img width="1450" height="260" alt="Image" src="https://github.com/user-attachments/assets/287411a5-b3a3-4211-a44c-fda6cc02a2a1" /> I only have 43K bookmarks so the number of pending should be `number_of_bookmarks - bookmarks_queued`
Author
Owner

@qixing-jk commented on GitHub (Sep 12, 2025):

Based on code logic in github.com/karakeep-app/karakeep@2cb1b28a11/packages/trpc/routers/admin.ts (L110)

Just just clear queues table, you also need to update the taggingStatus and summarizationStatus properties in the bookmarks table in db.db as shown below.

UPDATE bookmarks
SET summarizationStatus = 'success'
WHERE summarizationStatus != 'success';
<!-- gh-comment-id:3284820706 --> @qixing-jk commented on GitHub (Sep 12, 2025): Based on code logic in https://github.com/karakeep-app/karakeep/blob/2cb1b28a114185b6f097d6e389375e3f6112f953/packages/trpc/routers/admin.ts#L110 Just just clear queues table, you also need to update the taggingStatus and summarizationStatus properties in the bookmarks table in db.db as shown below. ```sql UPDATE bookmarks SET summarizationStatus = 'success' WHERE summarizationStatus != 'success'; ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/karakeep#898
No description provided.