mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
restart workers on error
This commit is contained in:
parent
0259cfe1a7
commit
16cd4d9d4b
4 changed files with 57 additions and 14 deletions
|
@ -9,7 +9,7 @@ import utils from './utils'
|
|||
import { isMainThread, workerData } from 'worker_threads'
|
||||
|
||||
let recognizeCount = 0
|
||||
const MAX_ALLOWED_RECOGNIZE_COUNT = 100
|
||||
const MAX_ALLOWED_RECOGNIZE_COUNT = 3000 // ~ 500 MB
|
||||
|
||||
// https://github.com/naptha/tesseract.js/blob/master/docs/api.md
|
||||
let tesseractWorker: TesseractWorker = null
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue