Subversion Repositories SmartDukaan

Rev

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

Rev 28183 Rev 28205
Line 18... Line 18...
18
 
18
 
19
	private static final Logger log = LogManager.getLogger(ScheduledSkeleton.class);
19
	private static final Logger log = LogManager.getLogger(ScheduledSkeleton.class);
20
 
20
 
21
	@Autowired
21
	@Autowired
22
	private ScheduledTasks scheduledTasks;
22
	private ScheduledTasks scheduledTasks;
23
	
23
 
24
	@Autowired
24
	@Autowired
25
	private LeadSyncRunner leadSyncRunner;
25
	private LeadSyncRunner leadSyncRunner;
26
 
26
 
27
	@Autowired
27
	@Autowired
28
	private Reconciliation reconciliation;
28
	private Reconciliation reconciliation;
Line 44... Line 44...
44
	@Scheduled(cron = "0 15 0 * * *")
44
	@Scheduled(cron = "0 15 0 * * *")
45
	public void runOnceTasks() throws Exception {
45
	public void runOnceTasks() throws Exception {
46
		scheduledTasks.reconcileRecharge();
46
		scheduledTasks.reconcileRecharge();
47
	}
47
	}
48
 
48
 
-
 
49
	/*
49
	/*@Scheduled(cron = "0 0 8 * * *")
50
	 * @Scheduled(cron = "0 0 8 * * *") public void mailDashboardScreenshots()
50
	public void mailDashboardScreenshots() throws Exception {
-
 
51
		runOnceTasks.mailDashboardScreenshots();
51
	 * throws Exception { runOnceTasks.mailDashboardScreenshots(); }
52
	}*/
52
	 */
53
 
53
 
54
	@Scheduled(cron = "0 05 0 1,16 * ?")
54
	@Scheduled(cron = "0 05 0 1,16 * ?")
55
	public void processRechargeCashback() throws Throwable {
55
	public void processRechargeCashback() throws Throwable {
56
		scheduledTasks.processRechargeCashback();
56
		scheduledTasks.processRechargeCashback();
57
	}
57
	}
Line 86... Line 86...
86
 
86
 
87
	@Scheduled(cron = "0 0 6 * * *")
87
	@Scheduled(cron = "0 0 6 * * *")
88
	public void dailyReconciliation() throws Exception {
88
	public void dailyReconciliation() throws Exception {
89
		reconciliation.dailyReconciliation();
89
		reconciliation.dailyReconciliation();
90
	}
90
	}
91
	
91
 
92
	@Scheduled(cron = "0 0 1 * * *")
92
	@Scheduled(cron = "0 0 1 * * *")
93
	public void processActivation() throws Exception {
93
	public void processActivation() throws Exception {
94
		scheduledTasks.processActivation();
94
		scheduledTasks.processActivation();
95
	}
95
	}
96
 
96
 
97
	@Scheduled(cron = "0 */5 * * * *")
97
	@Scheduled(cron = "0 */5 * * * *")
98
	public void sendNotification() throws Throwable {
98
	public void sendNotification() throws Throwable {
99
		scheduledTasks.sendNotification();
99
		scheduledTasks.sendNotification();
100
	}
100
	}
101
	
101
 
102
	@Scheduled(cron = "0 */10 * * * *")
102
	@Scheduled(cron = "0 */10 * * * *")
103
	public void attachToffeeInvoices() throws Throwable {
103
	public void attachToffeeInvoices() throws Throwable {
104
		scheduledTasks.attachToffeeInvoices();
104
		scheduledTasks.attachToffeeInvoices();
105
	}
105
	}
106
 
106
 
Line 116... Line 116...
116
		log.info("startTime" + LocalDateTime.now());
116
		log.info("startTime" + LocalDateTime.now());
117
		scheduledTasks.checkfocusedModelInPartnerStock();
117
		scheduledTasks.checkfocusedModelInPartnerStock();
118
 
118
 
119
		log.info("endTime" + LocalDateTime.now());
119
		log.info("endTime" + LocalDateTime.now());
120
	}
120
	}
121
	
121
 
122
	@Scheduled(cron = "0 0 8,10,12,14,16,18,20 * * *")
122
	@Scheduled(cron = "0 0 8,10,12,14,16,18,20 * * *")
123
	public void notifyLead() throws Throwable {
123
	public void notifyLead() throws Throwable {
124
		scheduledTasks.notifyLead();
124
		scheduledTasks.notifyLead();
125
		//scheduledTasks.notifyVisits();
125
		// scheduledTasks.notifyVisits();
126
	}
126
	}
127
 
127
 
128
	@Scheduled(cron = "0 0 1 * * *")
128
	@Scheduled(cron = "0 0 1 * * *")
129
	public void fetchImeiActivation() throws Throwable {
129
	public void fetchImeiActivation() throws Throwable {
130
		runOnceTasks.fetchImeiActivation(0);
130
		runOnceTasks.fetchImeiActivation(0);
Line 136... Line 136...
136
		scheduledTasks.checkValidateReferral();
136
		scheduledTasks.checkValidateReferral();
137
 
137
 
138
		log.info("endTime" + LocalDateTime.now());
138
		log.info("endTime" + LocalDateTime.now());
139
	}
139
	}
140
 
140
 
-
 
141
	@Scheduled(cron = "0 0 1 * * *")
-
 
142
	public void partnerProblemAlert() throws Throwable {
-
 
143
		log.info("startTime" + LocalDateTime.now());
-
 
144
		scheduledTasks.partnerProblemAlert();
-
 
145
 
-
 
146
		log.info("endTime" + LocalDateTime.now());
-
 
147
	}
141
}
148
}