Skip to content

Improved logging during ocr-workspace-cleanup #1546

@edsu

Description

@edsu

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:

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions