Skip to content

Commit dd7f57a

Browse files
Increase timeouts and retries to prevent ENOPRSTATS (#2328)
Increase timeouts and retries to prevent ENOPRSTATS ENOPRSTATS are still happening in prod. Try to mitigate them a bit more. Reviewed-by: Laura Barcziová
2 parents 7337498 + e24b8a8 commit dd7f57a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packit_service/worker/checker/distgit.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def contains_specfile_change(self):
3838
logger.debug(f"PR {pr_id} status: {self.pull_request.status}")
3939
# Pagure API tends to return ENOPRSTATS error when a pull request is transitioning
4040
# from open to merged state, give it some extra time
41-
diff = self.project.get_pr_files_diff(pr_id, retries=5, wait_seconds=5) or {}
41+
diff = self.project.get_pr_files_diff(pr_id, retries=7, wait_seconds=7) or {}
4242
if not any(change.endswith(".spec") for change in diff):
4343
logger.info(f"PR {pr_id} does not contain a specfile change.")
4444
return False

0 commit comments

Comments
 (0)