diff options
| author | Claude <noreply@anthropic.com> | 2025-12-09 22:54:55 +0000 |
|---|---|---|
| committer | Mohamed Bassem <me@mbassem.com> | 2025-12-10 08:23:43 +0000 |
| commit | 91784cd20cc218568adb45c7903902ca75ff531a (patch) | |
| tree | c0536ec7b1ebc4031b16a91f13fa4da555dbcb3f /apps | |
| parent | 3e8cc745dd692e47784e68f209a70137ec9d86fe (diff) | |
| download | karakeep-91784cd20cc218568adb45c7903902ca75ff531a.tar.zst | |
feat: make asset preprocessing worker timeout configurable
- Added ASSET_PREPROCESSING_JOB_TIMEOUT_SEC environment variable with default of 60 seconds (increased from hardcoded 30 seconds)
- Updated worker to use the configurable timeout from serverConfig
- Added documentation for the new configuration option
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/workers/workers/assetPreprocessingWorker.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/workers/workers/assetPreprocessingWorker.ts b/apps/workers/workers/assetPreprocessingWorker.ts index ff16906d..b585a15e 100644 --- a/apps/workers/workers/assetPreprocessingWorker.ts +++ b/apps/workers/workers/assetPreprocessingWorker.ts @@ -62,7 +62,7 @@ export class AssetPreprocessingWorker { { concurrency: serverConfig.assetPreprocessing.numWorkers, pollIntervalMs: 1000, - timeoutSecs: 30, + timeoutSecs: serverConfig.assetPreprocessing.jobTimeoutSec, }, ); |
