Subversion Repositories SmartDukaan

Rev

Rev 37675 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 37675 Rev 37686
Line 312... Line 312...
312
            // No sleep needed - Spring scheduler keeps app running and handles 10 PM stop
312
            // No sleep needed - Spring scheduler keeps app running and handles 10 PM stop
313
        }
313
        }
314
        if (args.containsOption("trackingReport")) {
314
        if (args.containsOption("trackingReport")) {
315
            runOnceTasks.dailyTrackingReport();
315
            runOnceTasks.dailyTrackingReport();
316
        }
316
        }
-
 
317
        if (args.containsOption("poStockApprovalDailyDigest")) {
-
 
318
            runOnceTasks.poStockApprovalDailyDigest();
-
 
319
        }
-
 
320
        // --rbmRankingForMonth [--month=YYYY-MM]
-
 
321
        // Read-only probe: prints the composite RBM ranking for the given month
-
 
322
        // (default: previous month) to log. No email, no DB writes.
-
 
323
        if (args.containsOption("rbmRankingForMonth")) {
-
 
324
            java.time.YearMonth month = java.time.YearMonth.now().minusMonths(1);
-
 
325
            if (args.containsOption("month")) {
-
 
326
                try {
-
 
327
                    month = java.time.YearMonth.parse(args.getOptionValues("month").get(0));
-
 
328
                } catch (Exception e) {
-
 
329
                    LOGGER.error("Invalid --month value; expected YYYY-MM: {}", e.getMessage());
-
 
330
                    System.exit(1);
-
 
331
                }
-
 
332
            }
-
 
333
            runOnceTasks.printRbmRankingForMonth(month);
-
 
334
            System.exit(0);
-
 
335
        }
317
        if (args.containsOption("stopKnowlarityMonitor")) {
336
        if (args.containsOption("stopKnowlarityMonitor")) {
318
            LOGGER.info("Stopping Knowlarity Call Monitor...");
337
            LOGGER.info("Stopping Knowlarity Call Monitor...");
319
            knowlarityCallMonitorScheduler.stopMonitoring();
338
            knowlarityCallMonitorScheduler.stopMonitoring();
320
        }
339
        }
321
        // Knowlarity - Request fresh snapshot manually (when status not updating)
340
        // Knowlarity - Request fresh snapshot manually (when status not updating)