File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -113,6 +113,9 @@ def invalidate_paths(
113113 break
114114 if current_invalidation :
115115 results .append (current_invalidation )
116+ # To avoid conflict rushing request, we can wait 1s here
117+ # for next invalidation request sending.
118+ time .sleep (1 )
116119 caller_ref = str (uuid .uuid4 ())
117120 logger .debug (
118121 "Processing invalidation for batch with ref %s, size: %s" ,
Original file line number Diff line number Diff line change @@ -459,7 +459,7 @@ def handle_maven_uploading(
459459 else :
460460 logger .info ("Bypass indexing" )
461461
462- # Finally do the CF invalidating for metadata files
462+ # 11. Finally do the CF invalidating for metadata files
463463 if cf_enable and len (cf_invalidate_paths ) > 0 :
464464 cf_client = CFClient (aws_profile = aws_profile )
465465 cf_invalidate_paths = __wildcard_metadata_paths (cf_invalidate_paths )
@@ -639,6 +639,7 @@ def handle_maven_del(
639639 else :
640640 logger .info ("Bypassing indexing" )
641641
642+ # 9. Finally do the CF invalidating for metadata files
642643 if cf_enable and len (cf_invalidate_paths ):
643644 cf_client = CFClient (aws_profile = aws_profile )
644645 cf_invalidate_paths = __wildcard_metadata_paths (cf_invalidate_paths )
You can’t perform that action at this time.
0 commit comments