Skip to content

Commit

Permalink
add notes on next steps
Browse files Browse the repository at this point in the history
  • Loading branch information
pluckyswan committed Dec 20, 2024
1 parent 5b648b7 commit 7b545da
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,20 @@ public void organizeAndCleanupBlobsByDate(int retentionDays, ZoneId timeZone) {
continue;
}

// TODO - separate the content by golden or automated so it can be distinguished
// when its pulled down
// modify destinationName to be test folder specific
// possibly read blob and modify parseAndMapMessageByControlId or use its parts to
// get a different MSH header like getIdentifier
// possibly use a different receiver and filter on that

String destinationName =
AzureBlobHelper.createDateBasedPath(sourceCreationDate, sourceName);

BlobClient destinationBlob = blobContainerClient.getBlobClient(destinationName);
destinationBlob
.beginCopy(sourceBlob.getBlobUrl(), null)
.waitForCompletion(Duration.ofSeconds(30));

CopyStatusType copyStatus = destinationBlob.getProperties().getCopyStatus();
if (copyStatus == CopyStatusType.SUCCESS) {
sourceBlob.delete();
Expand Down

0 comments on commit 7b545da

Please sign in to comment.