-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
We are noticing long lags (multiple minutes) during the ocrWF's ocr-workspace-cleanup in production. There doesn't appear to be any information about the sleeping behavior in the logs, which would be helpful for diagnosing what is going on:
common-accessioning/lib/dor/text_extraction/ocr.rb
Lines 105 to 111 in 71afcdd
| loop do | |
| delete_folder(abbyy_output_path) | |
| tries += 1 | |
| break if !Dir.exist?(abbyy_output_path) || Dir.empty?(abbyy_output_path) || tries > max_tries | |
| sleep((Settings.sleep_coefficient * 2)**tries) | |
| end |
Metadata
Metadata
Assignees
Labels
No labels