Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions charon/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ def invalidate_paths(
break
if current_invalidation:
results.append(current_invalidation)
# To avoid conflict rushing request, we can wait 1s here
# for next invalidation request sending.
time.sleep(1)
caller_ref = str(uuid.uuid4())
logger.debug(
"Processing invalidation for batch with ref %s, size: %s",
Expand Down
3 changes: 2 additions & 1 deletion charon/pkgs/maven.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ def handle_maven_uploading(
else:
logger.info("Bypass indexing")

# Finally do the CF invalidating for metadata files
# 11. Finally do the CF invalidating for metadata files
if cf_enable and len(cf_invalidate_paths) > 0:
cf_client = CFClient(aws_profile=aws_profile)
cf_invalidate_paths = __wildcard_metadata_paths(cf_invalidate_paths)
Expand Down Expand Up @@ -639,6 +639,7 @@ def handle_maven_del(
else:
logger.info("Bypassing indexing")

# 9. Finally do the CF invalidating for metadata files
if cf_enable and len(cf_invalidate_paths):
cf_client = CFClient(aws_profile=aws_profile)
cf_invalidate_paths = __wildcard_metadata_paths(cf_invalidate_paths)
Expand Down