achandel-01 commented on code in PR #406:
URL: https://github.com/apache/atlas/pull/406#discussion_r2324143781
##########
webapp/src/main/java/org/apache/atlas/web/resources/AdminResource.java:
##########
@@ -162,6 +164,10 @@ public class AdminResource {
private static final List<String> TIMEZONE_LIST =
Arrays.asList(TimeZone.getAvailableIDs());
private static final String METRICS_PERSIST_INTERVAL =
"atlas.metrics.persist.schedule";
private static final String METRICS_PERSIST_INTERVAL_DEFAULT = "0 0
0/1 * * *"; // 1 hour interval
+ private static final String PURGE_CRON_EXPRESSION =
"atlas.purge.cron.expression";
+ private static final String PURGE_CRON_EXPRESSION_DEFAULT = "* *
* 30 2 ?";
Review Comment:
The requirement is to make it controlled by user , if user wants to enable
it or not, so rather than defining the separate flag I did it like it will
never run until user enters the valid cron expression. So if he enters cron
expression then only these cron jobs will be launched.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]