dheerajturaga opened a new pull request, #56206:
URL: https://github.com/apache/airflow/pull/56206
When using git DAG bundles, corrupted bare repositories can cause all tasks
landing on a host to fail with InvalidGitRepositoryError. This adds retry
logic that detects corrupted bare repositories, cleans them up, and
attempts
to re-clone them once before failing.
Changes:
- Add InvalidGitRepositoryError handling in _clone_bare_repo_if_required()
- Implement cleanup and retry logic with shutil.rmtree()
- Add comprehensive tests for both successful retry and retry failure
scenarios
- Ensure all existing tests continue to pass
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]