Skip to content

Commit 6135f88

Browse files
authored
[CCM-6921]: ECS recommendation fix (#32450)
1 parent 4a3ed64 commit 6135f88

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

280-batch-processing/src/main/java/io/harness/batch/processing/service/impl/BatchJobScheduledDataServiceImpl.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ public Instant fetchLastBatchJobScheduledTime(String accountId, BatchJobType bat
4747
.contains(batchJobType.getBatchJobBucket())) {
4848
Instant connectorCreationTime =
4949
Instant.ofEpochMilli(Instant.now().toEpochMilli()).truncatedTo(ChronoUnit.DAYS).minus(1, ChronoUnit.DAYS);
50-
if (ImmutableSet.of(BatchJobType.AWS_ECS_CLUSTER_SYNC).contains(batchJobType)) {
50+
if (ImmutableSet.of(BatchJobType.AWS_ECS_CLUSTER_SYNC, BatchJobType.AWS_ECS_SERVICE_RECOMMENDATION)
51+
.contains(batchJobType)) {
5152
Instant startInstant = Instant.now().minus(1, ChronoUnit.DAYS).truncatedTo(ChronoUnit.DAYS);
5253
connectorCreationTime = startInstant.isAfter(connectorCreationTime) ? startInstant : connectorCreationTime;
5354
} else {

0 commit comments

Comments
 (0)