Subversion Repositories SmartDukaan

Rev

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

Rev 37234 Rev 37258
Line 79... Line 79...
79
        propertiesDetails.put("processDailySchemes", "1");
79
        propertiesDetails.put("processDailySchemes", "1");
80
        writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
80
        writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
81
 
81
 
82
    }
82
    }
83
 
83
 
-
 
84
    /** Daily 00:20: start/expire hot-deal windows in tag_listing.hot_deals (Solr source). */
-
 
85
    @Scheduled(cron = "0 20 0 * * *")
-
 
86
    public void syncHotDealFlags() throws Exception {
-
 
87
        try {
-
 
88
            scheduledTasks.syncHotDealFlags();
-
 
89
        } catch (Exception e) {
-
 
90
            log.error("syncHotDealFlags failed", e);
-
 
91
        }
-
 
92
    }
-
 
93
 
84
    @Scheduled(cron = "0 15 0 * * *")
94
    @Scheduled(cron = "0 15 0 * * *")
85
    public void runOnceTasks() throws Exception {
95
    public void runOnceTasks() throws Exception {
86
 
96
 
87
        LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
97
        LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
88
        propertiesDetails.put("runOnceTasks", "0");
98
        propertiesDetails.put("runOnceTasks", "0");