Skip to content

fix: added retry to pipeline.py to mitigate "access denied", added log handler for dlt loggers reuse one handler per path#56

Open
ktstrader wants to merge 3 commits into
fix/0.2.12from
fix/BED-8837-Windows-errors
Open

fix: added retry to pipeline.py to mitigate "access denied", added log handler for dlt loggers reuse one handler per path#56
ktstrader wants to merge 3 commits into
fix/0.2.12from
fix/BED-8837-Windows-errors

Conversation

@ktstrader

@ktstrader ktstrader commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Description

Originally was receiving WinError 32 (Windows only issue) in the logs due to a process having the logs open while one was trying to rename the log file.
When trying to resolve that error I ran into another Windows issue WinError 5. It's a transient Windows file-sharing lock (usually Defender/OS still briefly holding the just-written load_package_state.json) surfacing as "access denied" during dlt's per-file package move and would crash the <ext>-convert process.

Changes:

  • src/openhound/core/pipeline.py — BasePipeline._run retries on transient Windows filesystem locks (EACCES/EPERM), unwrapping PipelineStepFailed to find the underlying OSError.
  • src/openhound/core/logging.py — shared RotatingFileHandler cache so root and dlt loggers reuse one handler per path, avoiding rotation "file in use" errors.
  • tests/test_pipeline_retry.py (new) + tests/test_log_handlers.py

Motivation and Context

Resolves: BED-8837

…", shared RotatingFileHandler cache so root and dlt loggers reuse one handler per path, avoiding rotation "file in use" errors
@ktstrader ktstrader self-assigned this Jul 1, 2026
Comment thread src/openhound/core/pipeline.py Outdated
@StranDutton StranDutton changed the title fix: added retry to pipeline.py to mitigate "access deneid", added log handler for dlt loggers reuse one handler per path fix: added retry to pipeline.py to mitigate "access denied", added log handler for dlt loggers reuse one handler per path Jul 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants