From 835527755b963fe3585ecb9d93c122ff88c5a596 Mon Sep 17 00:00:00 2001 From: Jhoan Munoz Date: Tue, 28 Sep 2021 15:33:41 +0100 Subject: [PATCH] Partial Export Sync Time --- .../exporter/jobs/partial/PartialSubmissionExporter.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Exporter/src/main/java/uk/ac/ebi/biostd/exporter/jobs/partial/PartialSubmissionExporter.java b/Exporter/src/main/java/uk/ac/ebi/biostd/exporter/jobs/partial/PartialSubmissionExporter.java index fa9dc99e..c3e83b32 100644 --- a/Exporter/src/main/java/uk/ac/ebi/biostd/exporter/jobs/partial/PartialSubmissionExporter.java +++ b/Exporter/src/main/java/uk/ac/ebi/biostd/exporter/jobs/partial/PartialSubmissionExporter.java @@ -31,7 +31,6 @@ @Component @RequiredArgsConstructor public class PartialSubmissionExporter { - private static final String FILE_FORMAT = "%s%s_%s.json"; private static final DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy_MM_dd_HH_mm"); @@ -45,11 +44,10 @@ public class PartialSubmissionExporter { public void execute() { log.info("executing partial export file job at {}", Instant.now(Clock.systemUTC())); - long beforeSyncDate = getNowEpoch(); + lastSyncTime = getNowEpoch(); processCreatedAndUpdatedSubmissions(submissionService.getUpdatedSubmissions(lastSyncTime)); processDeletedSubmissions(); - lastSyncTime = beforeSyncDate; log.info("finish processing updated/deleting submissions"); }