Skip to content

Commit 2c6861c

Browse files
committed
continued: Add log for when retention job starts
Signed-off-by: wslulciuc <willy@datakin.com>
1 parent 9bff632 commit 2c6861c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

api/src/main/java/marquez/jobs/DbRetentionJob.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
public class DbRetentionJob extends AbstractScheduledService implements Managed {
2727
private static final Duration NO_DELAY = Duration.ofMinutes(0);
2828

29-
/* The number of rows deleted per batch. */
29+
/* The retention policy frequency. */
3030
private final int frequencyMins;
3131

3232
/* The number of rows deleted per batch. */
@@ -45,10 +45,11 @@ public class DbRetentionJob extends AbstractScheduledService implements Managed
4545
*/
4646
public DbRetentionJob(
4747
@NonNull final Jdbi jdbi, @NonNull final DbRetentionConfig dbRetentionConfig) {
48+
this.frequencyMins = dbRetentionConfig.getFrequencyMins();
4849
this.numberOfRowsPerBatch = dbRetentionConfig.getNumberOfRowsPerBatch();
4950
this.retentionDays = dbRetentionConfig.getRetentionDays();
5051

51-
// Open connection.
52+
// Connection to database retention policy will be applied.
5253
this.jdbi = jdbi;
5354

5455
// Define fixed schedule with no delay.

0 commit comments

Comments
 (0)