Subversion Repositories SmartDukaan

Rev

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

Rev 34648 Rev 34669
Line 255... Line 255...
255
        writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
255
        writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
256
        log.info("send Notification Done");
256
        log.info("send Notification Done");
257
 
257
 
258
    }
258
    }
259
 
259
 
260
    @Scheduled(cron = "0 */15 * * * *")
260
    //@Scheduled(cron = "0 */15 * * * *")
261
    public void checkRazorPayPaymentStatus() throws Throwable {
261
    public void checkRazorPayPaymentStatus() throws Throwable {
262
 
262
 
263
        LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
263
        LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
264
        propertiesDetails.put("checkRazorPayPaymentStatus", "0");
264
        propertiesDetails.put("checkRazorPayPaymentStatus", "0");
265
        writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
265
        writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
Line 539... Line 539...
539
//        writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
539
//        writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
540
//
540
//
541
//        log.info("endTime" + LocalDateTime.now());
541
//        log.info("endTime" + LocalDateTime.now());
542
//    }
542
//    }
543
 
543
 
544
    @Scheduled(cron = "0 0 23 * * *")
544
    //@Scheduled(cron = "0 0 23 * * *")
545
    public void checkItelImeiActivationNew() throws Throwable {
545
    public void checkItelImeiActivationNew() throws Throwable {
546
        log.info("startTime" + LocalDate.now());
546
        log.info("startTime" + LocalDate.now());
547
 
547
 
548
        LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
548
        LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
549
        propertiesDetails.put("checkItelImeiActivationNew", "0");
549
        propertiesDetails.put("checkItelImeiActivationNew", "0");
Line 585... Line 585...
585
 
585
 
586
    }
586
    }
587
 
587
 
588
    @Scheduled(cron = "0 0 7 * * *")
588
    @Scheduled(cron = "0 0 7 * * *")
589
    public void setMovementWiseRbmTodayTargets() throws Throwable {
589
    public void setMovementWiseRbmTodayTargets() throws Throwable {
590
        log.info("today targets startTime {}" , LocalDateTime.now());
590
        log.info("today targets startTime {}", LocalDateTime.now());
591
 
591
 
592
        scheduledTasks.persistRbmTodayTargets();
592
        scheduledTasks.persistRbmTodayTargets();
593
 
593
 
594
    }
594
    }
595
 
595
 
596
    @Scheduled(cron = "0 0 21 * * *")
596
    @Scheduled(cron = "0 0 21 * * *")
597
    public void setMovementWiseRbmTodayAchievements() throws Throwable {
597
    public void setMovementWiseRbmTodayAchievements() throws Throwable {
598
        log.info("today achievement startTime {}" , LocalDateTime.now());
598
        log.info("today achievement startTime {}", LocalDateTime.now());
599
 
599
 
600
        scheduledTasks.persistRbmTodayAchievements();
600
        scheduledTasks.persistRbmTodayAchievements();
601
 
601
 
602
    }
602
    }
603
 
603
 
Line 693... Line 693...
693
    //On every fifth update deductions
693
    //On every fifth update deductions
694
    @Scheduled(cron = "0 30 6 5 * ?")
694
    @Scheduled(cron = "0 30 6 5 * ?")
695
    public void processSidbiDeductions() throws Throwable {
695
    public void processSidbiDeductions() throws Throwable {
696
        scheduledTasks.processSidbiDeductions();
696
        scheduledTasks.processSidbiDeductions();
697
    }
697
    }
-
 
698
 
698
    //Dont reset it for now as proposed by TV
699
    //Dont reset it for now as proposed by TV
699
    //@Scheduled(cron = "0 30 6 4 * ?")
700
    //@Scheduled(cron = "0 30 6 4 * ?")
700
    public void resetHardLimit() throws Throwable {
701
    public void resetHardLimit() throws Throwable {
701
        scheduledTasks.resetHardLimit();
702
        scheduledTasks.resetHardLimit();
702
    }
703
    }
Line 819... Line 820...
819
    public void bidPurchaseOrder() throws Throwable {
820
    public void bidPurchaseOrder() throws Throwable {
820
        log.info("running bid cron at 09:30PM");
821
        log.info("running bid cron at 09:30PM");
821
        runOnceTasks.processBids(ProfitMandiConstants.BID_CRON_ENUM.TODAY);
822
        runOnceTasks.processBids(ProfitMandiConstants.BID_CRON_ENUM.TODAY);
822
    }
823
    }
823
 
824
 
-
 
825
    /*@Scheduled(cron = "0 0 12 * * *")
-
 
826
    public void processCashDiscount() throws Throwable {
-
 
827
        scheduledTasks.processCashDiscount();
-
 
828
    }*/
-
 
829
 
-
 
830
 
824
    @Scheduled(cron = "0 0 9,17 * * *")
831
    @Scheduled(cron = "0 0 9,17 * * *")
825
    public void bidConsolidatedMessage() throws Throwable {
832
    public void bidConsolidatedMessage() throws Throwable {
826
        log.info("Running bid cron at 09:00 AM or 05:00 PM");
833
        log.info("Running bid cron at 09:00 AM or 05:00 PM");
827
        runOnceTasks.consolidatedBiddingMessage();
834
        runOnceTasks.consolidatedBiddingMessage();
828
    }
835
    }