[PR #2179] Respect abort signals in asset preprocessing worker #2017

Open
opened 2026-03-02 12:00:12 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/karakeep-app/karakeep/pull/2179
Author: @MohamedBassem
Created: 11/27/2025
Status: 🔄 Open

Base: mainHead: codex/fix-asset-pre-processing-worker-abort-signals


📝 Commits (1)

  • 31636d9 Handle aborts in asset preprocessing text extraction

📊 Changes

1 file changed (+115 additions, -13 deletions)

View changed files

📝 apps/workers/workers/assetPreprocessingWorker.ts (+115 -13)

📄 Description

Summary

  • ensure the asset preprocessing worker's OCR and PDF text extraction honor abort signals
  • make PDF screenshot generation abortable and propagate abort errors instead of swallowing them
  • guard the worker loop with abort checks before intensive operations

Testing

  • pnpm --filter @karakeep/workers typecheck

Codex Task


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/karakeep-app/karakeep/pull/2179 **Author:** [@MohamedBassem](https://github.com/MohamedBassem) **Created:** 11/27/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `codex/fix-asset-pre-processing-worker-abort-signals` --- ### 📝 Commits (1) - [`31636d9`](https://github.com/karakeep-app/karakeep/commit/31636d91e4d159a191ad4ae411e545d1462b9d91) Handle aborts in asset preprocessing text extraction ### 📊 Changes **1 file changed** (+115 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `apps/workers/workers/assetPreprocessingWorker.ts` (+115 -13) </details> ### 📄 Description ## Summary - ensure the asset preprocessing worker's OCR and PDF text extraction honor abort signals - make PDF screenshot generation abortable and propagate abort errors instead of swallowing them - guard the worker loop with abort checks before intensive operations ## Testing - pnpm --filter @karakeep/workers typecheck ------ [Codex Task](https://chatgpt.com/codex/tasks/task_e_6918aa9aaa94832c8ee2be48a3905d04) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#2017
No description provided.