| 23756 |
amit.gupta |
1 |
package com.smartdukaan.cron.scheduled;
|
|
|
2 |
|
| 30049 |
amit.gupta |
3 |
import com.smartdukaan.cron.migrations.RunOnceTasks;
|
| 34948 |
ranu |
4 |
import com.smartdukaan.cron.scheduled.ambreports.AbmReportSender;
|
| 30049 |
amit.gupta |
5 |
import com.smartdukaan.cron.scheduled.leadsync.LeadSyncRunner;
|
| 32832 |
amit.gupta |
6 |
import com.smartdukaan.cron.scheduled.ordertracking.OrderTrackingService;
|
| 32907 |
amit.gupta |
7 |
import com.smartdukaan.cron.scheduled.purchaseorder.POScheduler;
|
| 34443 |
vikas.jang |
8 |
import com.spice.profitmandi.common.model.ProfitMandiConstants;
|
| 34241 |
tejus.loha |
9 |
import com.spice.profitmandi.dao.service.PurSaleService;
|
| 23756 |
amit.gupta |
10 |
import org.apache.logging.log4j.LogManager;
|
|
|
11 |
import org.apache.logging.log4j.Logger;
|
|
|
12 |
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
13 |
import org.springframework.scheduling.annotation.Scheduled;
|
|
|
14 |
import org.springframework.stereotype.Component;
|
|
|
15 |
|
| 30049 |
amit.gupta |
16 |
import java.time.LocalDate;
|
|
|
17 |
import java.time.LocalDateTime;
|
| 34756 |
amit.gupta |
18 |
import java.time.LocalTime;
|
| 36993 |
amit |
19 |
import java.time.YearMonth;
|
| 30049 |
amit.gupta |
20 |
import java.util.Date;
|
|
|
21 |
import java.util.LinkedHashMap;
|
| 23756 |
amit.gupta |
22 |
|
|
|
23 |
@Component
|
| 30887 |
amit.gupta |
24 |
//@ConditionalOnProperty(name = "scheduled", havingValue = "true", matchIfMissing = true)
|
| 23756 |
amit.gupta |
25 |
public class ScheduledSkeleton {
|
| 23794 |
govind |
26 |
|
| 32048 |
tejbeer |
27 |
private static final Logger log = LogManager.getLogger(ScheduledSkeleton.class);
|
| 23756 |
amit.gupta |
28 |
|
| 32048 |
tejbeer |
29 |
@Autowired
|
|
|
30 |
private ScheduledTasks scheduledTasks;
|
| 28205 |
tejbeer |
31 |
|
| 32048 |
tejbeer |
32 |
@Autowired
|
| 36361 |
amit |
33 |
private BatchScheduledTasks batchScheduledTasks;
|
|
|
34 |
|
|
|
35 |
@Autowired
|
| 34321 |
ranu |
36 |
private ScheduledTasksTest scheduledTasksTest;
|
|
|
37 |
|
|
|
38 |
@Autowired
|
| 34948 |
ranu |
39 |
private AbmReportSender abmReportSender;
|
|
|
40 |
|
|
|
41 |
@Autowired
|
| 32048 |
tejbeer |
42 |
private LeadSyncRunner leadSyncRunner;
|
| 24841 |
govind |
43 |
|
| 32048 |
tejbeer |
44 |
@Autowired
|
|
|
45 |
private Reconciliation reconciliation;
|
| 25822 |
amit.gupta |
46 |
|
| 32048 |
tejbeer |
47 |
@Autowired
|
|
|
48 |
private RunOnceTasks runOnceTasks;
|
| 23756 |
amit.gupta |
49 |
|
| 32048 |
tejbeer |
50 |
@Autowired
|
|
|
51 |
private TicketRelatedScheduledTask ticketRelatedScheduledTask;
|
| 24841 |
govind |
52 |
|
| 32048 |
tejbeer |
53 |
@Autowired
|
|
|
54 |
private OnBoardingRelatedSchelduleTask onBoardingRelatedSchelduleTask;
|
| 28921 |
tejbeer |
55 |
|
| 32048 |
tejbeer |
56 |
@Scheduled(cron = "0 0 2 * * *")
|
|
|
57 |
public void processDailySchemes() throws Exception {
|
| 29757 |
tejbeer |
58 |
|
| 32048 |
tejbeer |
59 |
int maxMinusDays = 5;
|
|
|
60 |
int currentDayOfMonth = LocalDate.now().getDayOfMonth();
|
|
|
61 |
int minusDays = currentDayOfMonth > maxMinusDays ? maxMinusDays : currentDayOfMonth - 1;
|
|
|
62 |
if (minusDays > 0) {
|
|
|
63 |
scheduledTasks.processScheme(LocalDateTime.now().minusDays(minusDays), LocalDateTime.now(), false);
|
|
|
64 |
}
|
| 29673 |
manish |
65 |
|
| 32048 |
tejbeer |
66 |
}
|
| 24841 |
govind |
67 |
|
| 37292 |
amit |
68 |
/** Daily 00:20: re-index models whose hot-deal window opened today or closed yesterday. */
|
| 37258 |
amit |
69 |
@Scheduled(cron = "0 20 0 * * *")
|
|
|
70 |
public void syncHotDealFlags() throws Exception {
|
|
|
71 |
try {
|
|
|
72 |
scheduledTasks.syncHotDealFlags();
|
|
|
73 |
} catch (Exception e) {
|
|
|
74 |
log.error("syncHotDealFlags failed", e);
|
|
|
75 |
}
|
|
|
76 |
}
|
|
|
77 |
|
| 32048 |
tejbeer |
78 |
@Scheduled(cron = "0 15 0 * * *")
|
|
|
79 |
public void runOnceTasks() throws Exception {
|
| 29757 |
tejbeer |
80 |
|
| 32048 |
tejbeer |
81 |
scheduledTasks.reconcileRecharge();
|
| 29757 |
tejbeer |
82 |
|
| 32048 |
tejbeer |
83 |
}
|
| 25822 |
amit.gupta |
84 |
|
| 32048 |
tejbeer |
85 |
/*
|
|
|
86 |
* @Scheduled(cron = "0 0 8 * * *") public void mailDashboardScreenshots()
|
|
|
87 |
* throws Exception { runOnceTasks.mailDashboardScreenshots(); }
|
|
|
88 |
*/
|
| 25721 |
tejbeer |
89 |
|
| 32048 |
tejbeer |
90 |
@Scheduled(cron = "0 05 0 1,16 * ?")
|
|
|
91 |
public void processRechargeCashback() throws Throwable {
|
| 29673 |
manish |
92 |
|
| 32048 |
tejbeer |
93 |
scheduledTasks.processRechargeCashback();
|
| 29673 |
manish |
94 |
|
| 32048 |
tejbeer |
95 |
}
|
| 23794 |
govind |
96 |
|
| 32048 |
tejbeer |
97 |
@Scheduled(cron = "0 0 6 * * *")
|
|
|
98 |
public void sendPartnerInvestmentDetails() throws Exception {
|
|
|
99 |
scheduledTasks.sendPartnerInvestmentDetails();
|
|
|
100 |
long secs = (new Date().getTime()) / 1000;
|
|
|
101 |
log.info("sendPartnerInvestmentDetails" + LocalDateTime.now());
|
| 29757 |
tejbeer |
102 |
|
| 32048 |
tejbeer |
103 |
}
|
| 28921 |
tejbeer |
104 |
|
| 36993 |
amit |
105 |
// Monthly margins CN dry-run at 06:00 on the 1st. dryRun=true forces the harmless dev path
|
|
|
106 |
// (no IRN, no PDF, no DB persist, no partner mail) even on prod. The real pipeline is run
|
|
|
107 |
// manually via `--sendCreditNote --live`.
|
|
|
108 |
@Scheduled(cron = "0 0 6 1 * ?")
|
|
|
109 |
public void monthlyMarginsCnDryRun() throws Exception {
|
|
|
110 |
|
|
|
111 |
scheduledTasks.sendCreditNote(YearMonth.now().minusMonths(1), true);
|
|
|
112 |
|
|
|
113 |
}
|
|
|
114 |
|
| 37234 |
vikas |
115 |
@Scheduled(cron = "0 30 6 * * *")
|
| 34648 |
ranu |
116 |
public void generateBiReport() throws Exception {
|
|
|
117 |
scheduledTasksTest.generateBiReport();
|
|
|
118 |
}
|
| 34939 |
ranu |
119 |
@Scheduled(cron = "0 30 4 * * *")
|
|
|
120 |
public void createFofoSmartCartSuggestion() throws Exception {
|
|
|
121 |
scheduledTasksTest.createFofoSmartCartSuggestion();
|
|
|
122 |
}
|
| 35980 |
amit |
123 |
/*@Scheduled(cron = "0 0 6,22 * * *")
|
| 34948 |
ranu |
124 |
public void sendAbmSmartCartReport() throws Exception {
|
|
|
125 |
abmReportSender.sendAbmSmartCartReport();
|
| 35980 |
amit |
126 |
}*/
|
| 34648 |
ranu |
127 |
|
| 32048 |
tejbeer |
128 |
@Scheduled(cron = "0 0 10,15,17 * * *")
|
|
|
129 |
public void sendIndentTertiaryReport() throws Exception {
|
| 29757 |
tejbeer |
130 |
|
| 32048 |
tejbeer |
131 |
scheduledTasks.sendIndentTertiary();
|
| 29757 |
tejbeer |
132 |
|
| 32048 |
tejbeer |
133 |
}
|
| 28921 |
tejbeer |
134 |
|
| 32048 |
tejbeer |
135 |
@Scheduled(cron = "0 0 6 * * *")
|
|
|
136 |
public void checkPartnerActiveStoreByStatus() throws Exception {
|
| 29673 |
manish |
137 |
|
| 32048 |
tejbeer |
138 |
scheduledTasks.checkPartnerActiveStore();
|
| 29673 |
manish |
139 |
|
| 32048 |
tejbeer |
140 |
}
|
| 26790 |
tejbeer |
141 |
|
| 37040 |
ranu |
142 |
@Scheduled(cron = "0 30 23 * * *")
|
|
|
143 |
public void updatePartnerActivationTypeByMonthlySale() throws Exception {
|
|
|
144 |
|
|
|
145 |
scheduledTasks.updatePartnerActivationTypeByMonthlySale();
|
|
|
146 |
|
|
|
147 |
}
|
|
|
148 |
|
| 37172 |
amit |
149 |
// 23:45 — after updatePartnerActivationTypeByMonthlySale (23:30), so the
|
|
|
150 |
// REVIVAL agenda mirror reads today's activation_type state.
|
|
|
151 |
@Scheduled(cron = "0 45 23 * * *")
|
|
|
152 |
public void updatePjpAgendaInstances() throws Exception {
|
|
|
153 |
|
|
|
154 |
scheduledTasks.updatePjpAgendaInstances();
|
|
|
155 |
|
|
|
156 |
}
|
|
|
157 |
|
| 32048 |
tejbeer |
158 |
// @Scheduled(cron = "0 0 8 * * *")
|
|
|
159 |
public void sendStockAgeingReport() throws Throwable {
|
| 29757 |
tejbeer |
160 |
|
| 32048 |
tejbeer |
161 |
scheduledTasks.sendAgeingReport();
|
| 29757 |
tejbeer |
162 |
|
| 32048 |
tejbeer |
163 |
}
|
| 24131 |
govind |
164 |
|
| 32048 |
tejbeer |
165 |
@Scheduled(cron = "0 0 11 * * *")
|
|
|
166 |
public void escalateTicket() throws Exception {
|
|
|
167 |
log.info("escalate ticket");
|
|
|
168 |
ticketRelatedScheduledTask.escalateTicket();
|
| 29757 |
tejbeer |
169 |
|
| 32048 |
tejbeer |
170 |
}
|
| 24841 |
govind |
171 |
|
| 32048 |
tejbeer |
172 |
@Scheduled(cron = "0 0 11 * * *")
|
|
|
173 |
public void alertTicketToUser() throws Exception {
|
|
|
174 |
log.info("alert for ticket");
|
| 29673 |
manish |
175 |
|
| 32048 |
tejbeer |
176 |
ticketRelatedScheduledTask.alertforTicket();
|
| 29673 |
manish |
177 |
|
| 32048 |
tejbeer |
178 |
}
|
| 24841 |
govind |
179 |
|
| 34904 |
ranu |
180 |
//@Scheduled(cron = "0 0 14,18,23 ? * *")
|
| 32048 |
tejbeer |
181 |
public void dailySaleNotification() throws Exception {
|
|
|
182 |
log.info("daily send Notification");
|
| 29673 |
manish |
183 |
|
| 32048 |
tejbeer |
184 |
scheduledTasks.sendDailySalesNotificationToPartner(null);
|
| 29757 |
tejbeer |
185 |
|
| 32048 |
tejbeer |
186 |
}
|
| 24841 |
govind |
187 |
|
| 32048 |
tejbeer |
188 |
/*
|
|
|
189 |
* @Scheduled(cron = "0 0 6 * * *") public void dailyReconciliation() throws
|
|
|
190 |
* Exception { reconciliation.dailyReconciliation(); }
|
|
|
191 |
*/
|
| 28205 |
tejbeer |
192 |
|
| 32048 |
tejbeer |
193 |
@Scheduled(cron = "0 0 1 * * *")
|
|
|
194 |
public void selectFinServiceFollowUpDateByCurrDate() throws Exception {
|
|
|
195 |
log.info("selectFinServiceFollowUpDateByCurrDate");
|
|
|
196 |
scheduledTasks.selectFinServiceFollowUpDateByCurrDate(LocalDate.now());
|
| 30049 |
amit.gupta |
197 |
|
| 32048 |
tejbeer |
198 |
}
|
| 30049 |
amit.gupta |
199 |
|
| 32165 |
amit.gupta |
200 |
@Scheduled(cron = "0 0 4 * * *")
|
| 32048 |
tejbeer |
201 |
public void processActivation() throws Exception {
|
| 29757 |
tejbeer |
202 |
|
| 32048 |
tejbeer |
203 |
scheduledTasks.processActivation();
|
| 29757 |
tejbeer |
204 |
|
| 32048 |
tejbeer |
205 |
}
|
| 25721 |
tejbeer |
206 |
|
| 32048 |
tejbeer |
207 |
// TODO: Change it back to first of every month
|
|
|
208 |
// @Scheduled(cron = "0 0 1 1 * *")
|
|
|
209 |
@Scheduled(cron = "0 0 1 2 * *")
|
|
|
210 |
public void rollOutUpgardedMargins() throws Exception {
|
| 35522 |
amit |
211 |
scheduledTasks.rollOutUpgardedMarginsNextMonth(null);
|
| 30788 |
amit.gupta |
212 |
|
| 32048 |
tejbeer |
213 |
}
|
| 30788 |
amit.gupta |
214 |
|
| 34241 |
tejus.loha |
215 |
@Scheduled(fixedDelay = 60 * 1000)
|
| 32048 |
tejbeer |
216 |
public void sendNotification() throws Throwable {
|
| 29757 |
tejbeer |
217 |
|
| 32048 |
tejbeer |
218 |
log.info("send Notification");
|
| 29673 |
manish |
219 |
|
| 32048 |
tejbeer |
220 |
scheduledTasks.sendNotification();
|
|
|
221 |
log.info("send Notification Done");
|
| 29673 |
manish |
222 |
|
| 32048 |
tejbeer |
223 |
}
|
| 28205 |
tejbeer |
224 |
|
| 34669 |
amit.gupta |
225 |
//@Scheduled(cron = "0 */15 * * * *")
|
| 32048 |
tejbeer |
226 |
public void checkRazorPayPaymentStatus() throws Throwable {
|
| 29757 |
tejbeer |
227 |
|
| 32048 |
tejbeer |
228 |
scheduledTasks.checkRazorPayPaymentStatus();
|
| 29673 |
manish |
229 |
|
| 32048 |
tejbeer |
230 |
}
|
| 28377 |
tejbeer |
231 |
|
| 36292 |
amit |
232 |
@Scheduled(fixedDelay = 5 * 1000)
|
| 33426 |
amit.gupta |
233 |
//@Scheduled(cron = "0 5 23 * * *")
|
| 32048 |
tejbeer |
234 |
public void updateIrnsToInvoices() throws Throwable {
|
|
|
235 |
runOnceTasks.updateIrnsToInvoices();
|
|
|
236 |
}
|
| 31612 |
tejbeer |
237 |
|
| 32048 |
tejbeer |
238 |
// No longer needed
|
|
|
239 |
// @Scheduled(cron = "0 */10 * * * *")
|
|
|
240 |
public void attachToffeeInvoices() throws Throwable {
|
| 29757 |
tejbeer |
241 |
|
| 32048 |
tejbeer |
242 |
scheduledTasks.attachToffeeInvoices();
|
| 29757 |
tejbeer |
243 |
|
| 32048 |
tejbeer |
244 |
}
|
| 24841 |
govind |
245 |
|
| 35568 |
amit |
246 |
// REMOVED: ticketClosed() scheduler - now handled by TicketRelatedScheduledTask.autoCloseResolvedTickets()
|
|
|
247 |
// which uses 8 working days instead of 7 calendar days and runs as part of processAllTicketTasks()
|
| 26283 |
tejbeer |
248 |
|
| 32048 |
tejbeer |
249 |
@Scheduled(cron = "0 0 8 * * *")
|
|
|
250 |
public void checkfocusedModelInPartnerStock() throws Throwable {
|
|
|
251 |
log.info("startTime" + LocalDateTime.now());
|
| 29757 |
tejbeer |
252 |
|
| 32048 |
tejbeer |
253 |
scheduledTasks.checkfocusedModelInPartnerStock();
|
| 25721 |
tejbeer |
254 |
|
| 32048 |
tejbeer |
255 |
log.info("endTime" + LocalDateTime.now());
|
|
|
256 |
}
|
| 28205 |
tejbeer |
257 |
|
| 32048 |
tejbeer |
258 |
@Scheduled(cron = "0 0 8,10,12,14,16,18,20 * * *")
|
|
|
259 |
public void notifyLead() throws Throwable {
|
| 29757 |
tejbeer |
260 |
|
| 32048 |
tejbeer |
261 |
scheduledTasks.notifyLead();
|
| 29757 |
tejbeer |
262 |
|
| 32048 |
tejbeer |
263 |
// scheduledTasks.notifyVisits();
|
|
|
264 |
}
|
| 25721 |
tejbeer |
265 |
|
| 32048 |
tejbeer |
266 |
// No longer scheduled
|
|
|
267 |
// @Scheduled(cron = "0 0 1 * * *")
|
|
|
268 |
public void fetchImeiActivation() throws Throwable {
|
| 29673 |
manish |
269 |
|
| 32048 |
tejbeer |
270 |
runOnceTasks.fetchImeiActivation(0);
|
| 29757 |
tejbeer |
271 |
|
| 32048 |
tejbeer |
272 |
}
|
| 26790 |
tejbeer |
273 |
|
| 32411 |
amit.gupta |
274 |
@Scheduled(cron = "0 0 7 * * *")
|
|
|
275 |
//Send all lead owners the report for scheduled followups missed
|
|
|
276 |
public void sendUnscheduledFollowUpMail() throws Exception {
|
|
|
277 |
scheduledTasks.sendUnscheduledFollowUpMail();
|
|
|
278 |
}
|
|
|
279 |
|
| 32048 |
tejbeer |
280 |
@Scheduled(cron = "0 0 1 * * *")
|
|
|
281 |
public void checkValidateReferral() throws Throwable {
|
|
|
282 |
log.info("startTime" + LocalDateTime.now());
|
| 29673 |
manish |
283 |
|
| 32048 |
tejbeer |
284 |
scheduledTasks.checkValidateReferral();
|
| 29757 |
tejbeer |
285 |
|
| 32048 |
tejbeer |
286 |
log.info("endTime" + LocalDateTime.now());
|
|
|
287 |
}
|
| 26790 |
tejbeer |
288 |
|
| 32048 |
tejbeer |
289 |
// @Scheduled(cron = "0 0 8 * * *")
|
|
|
290 |
public void partnerProblemAlert() throws Throwable {
|
|
|
291 |
log.info("startTime" + LocalDateTime.now());
|
| 29673 |
manish |
292 |
|
| 32048 |
tejbeer |
293 |
scheduledTasks.partnerProblemAlert();
|
| 29673 |
manish |
294 |
|
| 32048 |
tejbeer |
295 |
log.info("endTime" + LocalDateTime.now());
|
|
|
296 |
}
|
| 28921 |
tejbeer |
297 |
|
| 32048 |
tejbeer |
298 |
/*
|
|
|
299 |
* @Scheduled(cron = "0 30 10 * * MON-SAT") public void
|
|
|
300 |
* sendMorningAttendanceAlert() throws Throwable { log.info("startTime" +
|
|
|
301 |
* LocalDateTime.now()); LinkedHashMap<String, String> propertiesDetails = new
|
|
|
302 |
* LinkedHashMap<>(); propertiesDetails.put("sendMorningAttendanceAlert", "0");
|
|
|
303 |
* writeToPropertiesFile.saveParamChanges(propertiesDetails,
|
|
|
304 |
* nagiosCronPropertiesFile);
|
| 32507 |
amit.gupta |
305 |
*
|
| 32048 |
tejbeer |
306 |
* scheduledTasks.sendAttendanceMorningAlert();
|
|
|
307 |
* propertiesDetails.put("sendMorningAttendanceAlert", "1");
|
|
|
308 |
* writeToPropertiesFile.saveParamChanges(propertiesDetails,
|
|
|
309 |
* nagiosCronPropertiesFile);
|
| 32507 |
amit.gupta |
310 |
*
|
| 32048 |
tejbeer |
311 |
* log.info("endTime" + LocalDateTime.now()); }
|
| 32507 |
amit.gupta |
312 |
*
|
| 32048 |
tejbeer |
313 |
* @Scheduled(cron = "0 30 20 * * MON-SAT") public void
|
|
|
314 |
* sendEveningAttendanceAlert() throws Throwable { log.info("startTime" +
|
|
|
315 |
* LocalDateTime.now()); LinkedHashMap<String, String> propertiesDetails = new
|
|
|
316 |
* LinkedHashMap<>(); propertiesDetails.put("sendEveningAttendanceAlert", "0");
|
|
|
317 |
* writeToPropertiesFile.saveParamChanges(propertiesDetails,
|
|
|
318 |
* nagiosCronPropertiesFile);
|
| 32507 |
amit.gupta |
319 |
*
|
| 32048 |
tejbeer |
320 |
* scheduledTasks.sendAttendanceEveningAlert();
|
|
|
321 |
* propertiesDetails.put("sendEveningAttendanceAlert", "1");
|
|
|
322 |
* writeToPropertiesFile.saveParamChanges(propertiesDetails,
|
|
|
323 |
* nagiosCronPropertiesFile);
|
| 32507 |
amit.gupta |
324 |
*
|
| 32048 |
tejbeer |
325 |
* log.info("endTime" + LocalDateTime.now()); }
|
|
|
326 |
*/
|
| 29673 |
manish |
327 |
|
| 35109 |
ranu |
328 |
@Scheduled(cron = "0 0 10 * * *")
|
| 32048 |
tejbeer |
329 |
public void onboardingEventDelays() throws Throwable {
|
|
|
330 |
log.info("startTime" + LocalDateTime.now());
|
| 29757 |
tejbeer |
331 |
|
| 32048 |
tejbeer |
332 |
onBoardingRelatedSchelduleTask.onboardingEventDelays();
|
| 29757 |
tejbeer |
333 |
|
| 32048 |
tejbeer |
334 |
log.info("endTime" + LocalDateTime.now());
|
|
|
335 |
}
|
| 28921 |
tejbeer |
336 |
|
| 36065 |
aman |
337 |
@Scheduled(cron = "0 30 10 * * *")
|
|
|
338 |
public void sendStockDeliveredTrainingNotification() {
|
|
|
339 |
log.info("sendStockDeliveredTrainingNotification startTime " + LocalDateTime.now());
|
|
|
340 |
onBoardingRelatedSchelduleTask.sendStockDeliveredTrainingNotification();
|
|
|
341 |
log.info("sendStockDeliveredTrainingNotification endTime " + LocalDateTime.now());
|
|
|
342 |
}
|
|
|
343 |
|
| 36003 |
aman |
344 |
@Scheduled(cron = "0 0 9 * * ?")
|
|
|
345 |
public void sendDelayAlertEmail() {
|
|
|
346 |
log.info("sendDelayAlertEmail startTime " + LocalDateTime.now());
|
|
|
347 |
onBoardingRelatedSchelduleTask.sendDelayAlertEmail();
|
|
|
348 |
log.info("sendDelayAlertEmail endTime " + LocalDateTime.now());
|
|
|
349 |
}
|
|
|
350 |
|
| 32048 |
tejbeer |
351 |
@Scheduled(cron = "0 0 8 * * *")
|
|
|
352 |
public void brandingAlert() throws Throwable {
|
|
|
353 |
log.info("startTime" + LocalDateTime.now());
|
| 29673 |
manish |
354 |
|
| 32048 |
tejbeer |
355 |
onBoardingRelatedSchelduleTask.brandingAlert();
|
| 29673 |
manish |
356 |
|
| 32048 |
tejbeer |
357 |
log.info("endTime" + LocalDateTime.now());
|
|
|
358 |
}
|
| 28921 |
tejbeer |
359 |
|
| 33859 |
tejus.loha |
360 |
// @Scheduled(cron = "0 0 8 * * *")
|
|
|
361 |
// public void advancePaymentPendingAlert() throws Throwable {
|
|
|
362 |
// log.info("startTime" + LocalDateTime.now());
|
|
|
363 |
//
|
|
|
364 |
// LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
|
|
365 |
// propertiesDetails.put("advancePaymentPendingAlert", "0");
|
|
|
366 |
// writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
|
|
367 |
//
|
|
|
368 |
// onBoardingRelatedSchelduleTask.advancePaymentPendingAlert();
|
|
|
369 |
// propertiesDetails.put("advancePaymentPendingAlert", "1");
|
|
|
370 |
// writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
|
|
371 |
//
|
|
|
372 |
// log.info("endTime" + LocalDateTime.now());
|
|
|
373 |
// }
|
| 29757 |
tejbeer |
374 |
|
| 32048 |
tejbeer |
375 |
@Scheduled(cron = "0 0 8 * * *")
|
|
|
376 |
public void fullPaymentPendingAlert() throws Throwable {
|
|
|
377 |
log.info("startTime" + LocalDateTime.now());
|
| 29757 |
tejbeer |
378 |
|
| 32048 |
tejbeer |
379 |
onBoardingRelatedSchelduleTask.fullPaymentPendingAlert();
|
| 29757 |
tejbeer |
380 |
|
| 32048 |
tejbeer |
381 |
log.info("endTime" + LocalDateTime.now());
|
|
|
382 |
}
|
| 28921 |
tejbeer |
383 |
|
| 33859 |
tejus.loha |
384 |
// @Scheduled(cron = "0 0 9 * * *")
|
|
|
385 |
// public void advancePaymentPendinglegalAlert() throws Throwable {
|
|
|
386 |
// log.info("startTime" + LocalDateTime.now());
|
|
|
387 |
// LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
|
|
388 |
// propertiesDetails.put("advancePaymentPendinglegalAlert", "0");
|
|
|
389 |
// writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
|
|
390 |
//
|
|
|
391 |
//// onBoardingRelatedSchelduleTask.advancePaymentPendinglegalAlert();
|
|
|
392 |
//
|
|
|
393 |
// propertiesDetails.put("advancePaymentPendinglegalAlert", "1");
|
|
|
394 |
// writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
|
|
395 |
//
|
|
|
396 |
// log.info("endTime" + LocalDateTime.now());
|
|
|
397 |
// }
|
| 29673 |
manish |
398 |
|
| 32048 |
tejbeer |
399 |
@Scheduled(cron = "0 */5 * * * *")
|
|
|
400 |
public void onBoardingCompleteEventEmail() throws Throwable {
|
|
|
401 |
log.info("startTime" + LocalDateTime.now());
|
| 29673 |
manish |
402 |
|
| 32048 |
tejbeer |
403 |
onBoardingRelatedSchelduleTask.onBoardingCompleteEventEmail();
|
| 29673 |
manish |
404 |
|
| 32048 |
tejbeer |
405 |
log.info("endTime" + LocalDateTime.now());
|
|
|
406 |
}
|
| 29040 |
tejbeer |
407 |
|
| 32048 |
tejbeer |
408 |
@Scheduled(cron = "0 */5 * * * *")
|
|
|
409 |
public void updateSaholicCISTable() throws Throwable {
|
|
|
410 |
log.info("updateSaholicCISTable startTime" + LocalDateTime.now());
|
|
|
411 |
runOnceTasks.updateSaholicCISTable();
|
|
|
412 |
log.info("updateSaholicCISTable endTime" + LocalDateTime.now());
|
|
|
413 |
}
|
| 30667 |
amit.gupta |
414 |
|
| 34241 |
tejus.loha |
415 |
@Autowired
|
|
|
416 |
PurSaleService purSaleService;
|
|
|
417 |
|
| 35133 |
ranu |
418 |
@Scheduled(cron = "0 0 6,22 * * ?")
|
| 34241 |
tejus.loha |
419 |
public void send10DaysEgedStockReport() throws Throwable {
|
| 34275 |
tejus.loha |
420 |
log.info("moreThen10DaysEgedStockReport startTime" + LocalDateTime.now());
|
|
|
421 |
scheduledTasks.send10OrMoreOlderStockReport();
|
|
|
422 |
log.info("moreThen10DaysEgedStockReport endTime" + LocalDateTime.now());
|
| 34241 |
tejus.loha |
423 |
}
|
|
|
424 |
|
| 35616 |
amit |
425 |
@Scheduled(fixedDelay = 5 * 60 * 1000)
|
| 32048 |
tejbeer |
426 |
public void fetchPartnerStat() throws Throwable {
|
|
|
427 |
scheduledTasks.fetchParnterStats();
|
|
|
428 |
}
|
| 30390 |
amit.gupta |
429 |
|
| 33859 |
tejus.loha |
430 |
// @Scheduled(cron = "0 0 9 * * *")
|
|
|
431 |
// public void storeTimelinePromoterPending() throws Throwable {
|
|
|
432 |
// log.info("startTime" + LocalDateTime.now());
|
|
|
433 |
//
|
|
|
434 |
// LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
|
|
435 |
// propertiesDetails.put("storeTimelinePromoterPending", "0");
|
|
|
436 |
// writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
|
|
437 |
//
|
|
|
438 |
//// onBoardingRelatedSchelduleTask.storeTimelinePromoterPending();
|
|
|
439 |
// propertiesDetails.put("storeTimelinePromoterPending", "1");
|
|
|
440 |
// writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
|
|
441 |
//
|
|
|
442 |
// log.info("endTime" + LocalDateTime.now());
|
|
|
443 |
// }
|
| 29757 |
tejbeer |
444 |
|
| 34669 |
amit.gupta |
445 |
//@Scheduled(cron = "0 0 23 * * *")
|
| 32214 |
jai.hind |
446 |
public void checkItelImeiActivationNew() throws Throwable {
|
|
|
447 |
log.info("startTime" + LocalDate.now());
|
|
|
448 |
|
|
|
449 |
log.info("startTimecheckItelImeiActivation" + LocalDate.now());
|
|
|
450 |
scheduledTasks.checkItelImeiActivationNew(LocalDate.now(), 90);
|
|
|
451 |
long secs = (new Date().getTime()) / 1000;
|
|
|
452 |
log.info("endTimecheckItelImeiActivation" + LocalDate.now());
|
|
|
453 |
|
|
|
454 |
}
|
|
|
455 |
|
| 36292 |
amit |
456 |
@Scheduled(fixedDelay = 5 * 60 * 1000)
|
| 32048 |
tejbeer |
457 |
public void vivoImeiActivation() throws Throwable {
|
|
|
458 |
log.info("startTimevivoImeiActivation" + LocalDateTime.now());
|
| 29757 |
tejbeer |
459 |
|
| 32048 |
tejbeer |
460 |
scheduledTasks.checkImeiActivation();
|
|
|
461 |
long secs = (new Date().getTime()) / 1000;
|
|
|
462 |
log.info("endTimevivoImeiActivation" + LocalDateTime.now());
|
| 29757 |
tejbeer |
463 |
|
| 32048 |
tejbeer |
464 |
}
|
| 29255 |
tejbeer |
465 |
|
| 36292 |
amit |
466 |
@Scheduled(fixedDelay = 5 * 60 * 1000)
|
| 36253 |
amit |
467 |
public void vivoImeiActivationTertiary() throws Throwable {
|
|
|
468 |
log.info("startTimevivoImeiActivationTertiary" + LocalDateTime.now());
|
|
|
469 |
|
|
|
470 |
scheduledTasks.checkImeiActivationTertiary();
|
|
|
471 |
|
|
|
472 |
log.info("endTimevivoImeiActivationTertiary" + LocalDateTime.now());
|
|
|
473 |
}
|
|
|
474 |
|
| 32048 |
tejbeer |
475 |
@Scheduled(cron = "0 0 8 * * *")
|
|
|
476 |
public void reviewUncontactablePartner() throws Throwable {
|
|
|
477 |
log.info("startTime" + LocalDateTime.now());
|
| 30421 |
tejbeer |
478 |
|
| 32048 |
tejbeer |
479 |
scheduledTasks.reviewUncontactablePartner();
|
| 30421 |
tejbeer |
480 |
|
| 32048 |
tejbeer |
481 |
}
|
| 30421 |
tejbeer |
482 |
|
| 33928 |
ranu |
483 |
@Scheduled(cron = "0 0 7 * * *")
|
|
|
484 |
public void setMovementWiseRbmTodayTargets() throws Throwable {
|
| 34669 |
amit.gupta |
485 |
log.info("today targets startTime {}", LocalDateTime.now());
|
| 33928 |
ranu |
486 |
|
|
|
487 |
scheduledTasks.persistRbmTodayTargets();
|
|
|
488 |
|
|
|
489 |
}
|
|
|
490 |
|
| 33986 |
ranu |
491 |
@Scheduled(cron = "0 0 21 * * *")
|
|
|
492 |
public void setMovementWiseRbmTodayAchievements() throws Throwable {
|
| 34669 |
amit.gupta |
493 |
log.info("today achievement startTime {}", LocalDateTime.now());
|
| 33986 |
ranu |
494 |
|
|
|
495 |
scheduledTasks.persistRbmTodayAchievements();
|
|
|
496 |
|
|
|
497 |
}
|
|
|
498 |
|
| 33078 |
ranu |
499 |
@Scheduled(cron = "0 0 8 * * *")
|
|
|
500 |
public void reviewNonSdBuyingBrand() throws Throwable {
|
|
|
501 |
log.info("startTime" + LocalDateTime.now());
|
|
|
502 |
|
|
|
503 |
scheduledTasks.reviewNonSdBuyingBrand();
|
|
|
504 |
|
|
|
505 |
}
|
|
|
506 |
|
| 32048 |
tejbeer |
507 |
@Autowired
|
|
|
508 |
private StandAlone standAlone;
|
| 30352 |
amit.gupta |
509 |
|
| 32832 |
amit.gupta |
510 |
@Autowired
|
|
|
511 |
OrderTrackingService orderTrackingService;
|
|
|
512 |
|
| 37448 |
amit |
513 |
// Oppo runs its two pools in PARALLEL again (r37447 merged them; measured cost was
|
|
|
514 |
// 5,280 -> 3,456/day because merging serialises the work, and at ~21s/imei merged
|
|
|
515 |
// there is no batch size or delay that reaches its target). Two drivers for oppo is
|
|
|
516 |
// the price of its throughput; realme stays merged since it has headroom.
|
| 36292 |
amit |
517 |
@Scheduled(fixedDelay = 5 * 60 * 1000)
|
| 32048 |
tejbeer |
518 |
public void oppo() throws Throwable {
|
| 37448 |
amit |
519 |
standAlone.checkOppoImeiStatus();
|
| 32048 |
tejbeer |
520 |
}
|
| 30352 |
amit.gupta |
521 |
|
| 36292 |
amit |
522 |
@Scheduled(fixedDelay = 5 * 60 * 1000)
|
| 37448 |
amit |
523 |
public void oppoTertiary() throws Throwable {
|
|
|
524 |
standAlone.checkOppoImeiStatusTertiary();
|
|
|
525 |
}
|
|
|
526 |
|
|
|
527 |
@Scheduled(fixedDelay = 5 * 60 * 1000)
|
| 34421 |
amit.gupta |
528 |
public void realme() throws Throwable {
|
| 37447 |
amit |
529 |
standAlone.checkRealmeImeiStatusCombined();
|
| 34421 |
amit.gupta |
530 |
}
|
|
|
531 |
|
| 32801 |
amit.gupta |
532 |
@Scheduled(cron = "0 0 * * * *")
|
| 32048 |
tejbeer |
533 |
public void markBlueDartOrderDelivered() throws Throwable {
|
|
|
534 |
log.info("startTime" + LocalDateTime.now());
|
| 32832 |
amit.gupta |
535 |
orderTrackingService.markBlueDartOrderDelivered();
|
| 32048 |
tejbeer |
536 |
log.info("endTime" + LocalDateTime.now());
|
|
|
537 |
}
|
| 31117 |
tejbeer |
538 |
|
| 32881 |
amit.gupta |
539 |
@Scheduled(cron = "0 15 * * * *")
|
| 32048 |
tejbeer |
540 |
public void markDelhiveryOrderDelivered() throws Throwable {
|
| 29673 |
manish |
541 |
|
| 32048 |
tejbeer |
542 |
log.info("startTime" + LocalDateTime.now());
|
| 32832 |
amit.gupta |
543 |
orderTrackingService.markDelhiveryOrderDelivered();
|
| 29673 |
manish |
544 |
|
| 32048 |
tejbeer |
545 |
log.info("endTime" + LocalDateTime.now());
|
|
|
546 |
}
|
| 29308 |
tejbeer |
547 |
|
| 32048 |
tejbeer |
548 |
@Scheduled(cron = "0 0 4 * * *")
|
|
|
549 |
public void processPriceDrop() throws Throwable {
|
|
|
550 |
scheduledTasks.processPriceDrop();
|
|
|
551 |
}
|
| 30637 |
amit.gupta |
552 |
|
| 32048 |
tejbeer |
553 |
@Scheduled(cron = "0 0 0 * * *")
|
|
|
554 |
public void calculateInterestAccured() throws Throwable {
|
| 34710 |
amit.gupta |
555 |
scheduledTasks.loanSettlement();
|
| 32048 |
tejbeer |
556 |
scheduledTasks.calculateInterestAccured();
|
|
|
557 |
}
|
| 30859 |
tejbeer |
558 |
|
| 32117 |
tejbeer |
559 |
// @Scheduled(cron = "0 */5 2-22 * * *")
|
| 33181 |
amit.gupta |
560 |
@Scheduled(fixedDelay = 1 * 60 * 1000)
|
| 32531 |
amit.gupta |
561 |
//@Scheduled(cron = "0 0 23 * * *")
|
| 32048 |
tejbeer |
562 |
public void loanSettlement() throws Throwable {
|
| 34756 |
amit.gupta |
563 |
LocalTime now = LocalTime.now();
|
| 34767 |
amit.gupta |
564 |
LocalTime start = LocalTime.of(9, 0);
|
| 34757 |
amit.gupta |
565 |
LocalTime end = LocalTime.of(23, 0);
|
| 34756 |
amit.gupta |
566 |
|
|
|
567 |
if (now.isBefore(start) || now.isAfter(end)) {
|
| 34762 |
amit.gupta |
568 |
System.out.println("Task skipped during restricted hours: " + now);
|
|
|
569 |
} else {
|
| 34756 |
amit.gupta |
570 |
scheduledTasks.loanSettlement();
|
|
|
571 |
System.out.println("Task executed at " + now);
|
|
|
572 |
}
|
| 32048 |
tejbeer |
573 |
}
|
| 30859 |
tejbeer |
574 |
|
| 32048 |
tejbeer |
575 |
@Scheduled(cron = "0 */15 * * * *")
|
|
|
576 |
public void ccAvenueSettlement() throws Throwable {
|
|
|
577 |
scheduledTasks.settleCCAvePayments();
|
|
|
578 |
}
|
| 31332 |
amit.gupta |
579 |
|
| 32048 |
tejbeer |
580 |
@Scheduled(cron = "0 0 6 * * *")
|
|
|
581 |
public void dailyLoanAlert() throws Throwable {
|
|
|
582 |
scheduledTasks.dailyLoanAlert();
|
|
|
583 |
}
|
| 30896 |
amit.gupta |
584 |
|
| 35106 |
ranu |
585 |
@Scheduled(cron = "0 0 11 * * *")
|
| 34162 |
ranu |
586 |
public void groupHidCatalogsByWeeks() throws Throwable {
|
|
|
587 |
scheduledTasks.groupHidCatalogsByWeeks();
|
|
|
588 |
}
|
|
|
589 |
|
| 36113 |
ranu |
590 |
@Scheduled(cron = "0 0 9 * * MON") // Every Monday at 9:00 AM
|
| 34321 |
ranu |
591 |
public void sendFeebackSalesAndRbm() throws Throwable {
|
|
|
592 |
scheduledTasksTest.sendRbmFeedbackSummaryEmail();
|
|
|
593 |
scheduledTasksTest.sendSalesFeedbackSummaryEmail();
|
|
|
594 |
}
|
|
|
595 |
|
| 32165 |
amit.gupta |
596 |
//Look out for imeis that have activation pending based of sale and mark create new SIO out of them
|
| 32048 |
tejbeer |
597 |
@Scheduled(cron = "0 0 1 * * *")
|
|
|
598 |
public void processActivatedImeisForSchemes() throws Throwable {
|
|
|
599 |
scheduledTasks.processActivatedImeisForSchemes();
|
|
|
600 |
}
|
| 34241 |
tejus.loha |
601 |
|
| 33357 |
amit.gupta |
602 |
//On every fifth update deductions
|
| 33435 |
amit.gupta |
603 |
@Scheduled(cron = "0 30 6 5 * ?")
|
| 33357 |
amit.gupta |
604 |
public void processSidbiDeductions() throws Throwable {
|
|
|
605 |
scheduledTasks.processSidbiDeductions();
|
|
|
606 |
}
|
| 34669 |
amit.gupta |
607 |
|
| 34374 |
amit.gupta |
608 |
//Dont reset it for now as proposed by TV
|
|
|
609 |
//@Scheduled(cron = "0 30 6 4 * ?")
|
| 33904 |
amit.gupta |
610 |
public void resetHardLimit() throws Throwable {
|
|
|
611 |
scheduledTasks.resetHardLimit();
|
|
|
612 |
}
|
|
|
613 |
|
| 34830 |
ranu |
614 |
@Scheduled(cron = "0 0/20 * * * *")
|
| 32048 |
tejbeer |
615 |
public void updatePartnerLimit() throws Throwable {
|
| 36361 |
amit |
616 |
batchScheduledTasks.updatePartnerLimitWithBatch();
|
| 32048 |
tejbeer |
617 |
}
|
| 30929 |
tejbeer |
618 |
|
| 34253 |
ranu |
619 |
@Scheduled(cron = "0 0 9,14,18 * * *")
|
| 33874 |
ranu |
620 |
public void createOpeningStockPartyWise() throws Throwable {
|
|
|
621 |
scheduledTasks.createOpeningStockPartyWise();
|
|
|
622 |
}
|
| 30936 |
tejbeer |
623 |
|
| 32842 |
amit.gupta |
624 |
//Loans due/overdue/default notifications sent to parnters
|
|
|
625 |
@Scheduled(cron = "0 0 11 * * *")
|
| 32822 |
ranu |
626 |
public void sendMailWhatsAppAfterLoanDueDate() throws Throwable {
|
|
|
627 |
scheduledTasks.sendMailWhatsAppAfterLoanDueDate();
|
|
|
628 |
}
|
| 34241 |
tejus.loha |
629 |
|
| 32842 |
amit.gupta |
630 |
@Scheduled(cron = "0 0 8 * * *")
|
|
|
631 |
public void alertForDueDate() throws Throwable {
|
|
|
632 |
scheduledTasks.alertForDueDate();
|
|
|
633 |
}
|
| 32822 |
ranu |
634 |
|
| 35133 |
ranu |
635 |
@Scheduled(cron = "0 0 4,21 * * *")
|
| 32048 |
tejbeer |
636 |
public void notifyLoanDueDateCross() throws Throwable {
|
|
|
637 |
scheduledTasks.notifyLoanDueDateCross();
|
|
|
638 |
}
|
| 30936 |
tejbeer |
639 |
|
| 35133 |
ranu |
640 |
@Scheduled(cron = "0 0 4,21 * * *")
|
| 32048 |
tejbeer |
641 |
public void notifyDefaultLoans() throws Throwable {
|
|
|
642 |
scheduledTasks.notifyDefaultLoans();
|
|
|
643 |
}
|
| 30936 |
tejbeer |
644 |
|
| 34910 |
ranu |
645 |
// @Scheduled(cron = "0 0 23 * * *")
|
| 32048 |
tejbeer |
646 |
public void hygineAlertForInternalTeam() throws Throwable {
|
|
|
647 |
scheduledTasks.hygineAlertForInternalTeam();
|
| 31206 |
tejbeer |
648 |
|
| 32048 |
tejbeer |
649 |
}
|
| 31206 |
tejbeer |
650 |
|
| 32048 |
tejbeer |
651 |
@Scheduled(cron = "0 0 23 * * *")
|
|
|
652 |
public void hygineAlertForPartner() throws Throwable {
|
|
|
653 |
scheduledTasks.hygineAlertForPartner();
|
| 31206 |
tejbeer |
654 |
|
| 32048 |
tejbeer |
655 |
}
|
| 31206 |
tejbeer |
656 |
|
| 32048 |
tejbeer |
657 |
@Scheduled(cron = "0 0 0 * * MON")
|
|
|
658 |
public void monthlyTargetForPartner() throws Throwable {
|
|
|
659 |
scheduledTasks.monthlyTargetForPartner();
|
| 31249 |
tejbeer |
660 |
|
| 32048 |
tejbeer |
661 |
}
|
| 31249 |
tejbeer |
662 |
|
| 32048 |
tejbeer |
663 |
@Scheduled(cron = "0 0 0 * * MON")
|
|
|
664 |
public void monthlyTargetForInternalTeam() throws Throwable {
|
|
|
665 |
scheduledTasks.monthlyTargetForInternalTeam();
|
| 31249 |
tejbeer |
666 |
|
| 32048 |
tejbeer |
667 |
}
|
| 31612 |
tejbeer |
668 |
|
| 32048 |
tejbeer |
669 |
@Scheduled(cron = "0 0 6 * * *")
|
|
|
670 |
public void sendSamsungRebilling() throws Throwable {
|
|
|
671 |
scheduledTasks.sendMailForSamsungRebilling();
|
|
|
672 |
}
|
| 31931 |
amit.gupta |
673 |
|
| 32048 |
tejbeer |
674 |
@Scheduled(cron = "0 10 8 * * *")
|
|
|
675 |
public void sendMailForAgeingAlert() throws Throwable {
|
|
|
676 |
scheduledTasks.sendMailForAgeingAlert();
|
|
|
677 |
}
|
|
|
678 |
|
|
|
679 |
@Scheduled(cron = "0 0 8 * * *")
|
|
|
680 |
public void sendFilteredRetailerPerformance() throws Throwable {
|
|
|
681 |
scheduledTasks.sendFilteredRetailerPerformance();
|
|
|
682 |
}
|
| 32690 |
amit.gupta |
683 |
|
| 33444 |
ranu |
684 |
@Scheduled(cron = "0 0 0 * * MON")
|
|
|
685 |
public void findAllLiveDemoBrandItemsByBillingDate() throws Throwable {
|
|
|
686 |
scheduledTasks.findAllLiveDemoBrandItemsByBillingDate();
|
|
|
687 |
}
|
| 34241 |
tejus.loha |
688 |
|
| 33464 |
ranu |
689 |
@Scheduled(cron = "0 10 6 * * *")
|
|
|
690 |
public void findTodayPocoBillingItems() throws Throwable {
|
|
|
691 |
scheduledTasks.findTodayPocoBillingItems();
|
|
|
692 |
}
|
| 32690 |
amit.gupta |
693 |
|
|
|
694 |
@Scheduled(cron = "0 0 12 * * *")
|
|
|
695 |
public void rejectPriceDropsOfApprovedImeis() throws Throwable {
|
| 37083 |
amit |
696 |
batchScheduledTasks.reprocessPriceDropsWithBatch();
|
| 32690 |
amit.gupta |
697 |
}
|
| 32907 |
amit.gupta |
698 |
|
|
|
699 |
@Autowired
|
|
|
700 |
POScheduler poScheduler;
|
| 34241 |
tejus.loha |
701 |
|
| 32907 |
amit.gupta |
702 |
@Scheduled(cron = "0 0 1 * * *")
|
| 33643 |
amit.gupta |
703 |
public void autoClosePO() {
|
| 32907 |
amit.gupta |
704 |
poScheduler.autoClosePurchaseOrders();
|
|
|
705 |
}
|
| 32048 |
tejbeer |
706 |
/*
|
|
|
707 |
* @Scheduled(cron = "0 0 9 * * *") public void onBoardingDocumentsPending()
|
|
|
708 |
* throws Throwable { log.info("startTime" + LocalDateTime.now());
|
|
|
709 |
* onBoardingRelatedSchelduleTask.onBoardingDocumentsPending();
|
|
|
710 |
* log.info("endTime" + LocalDateTime.now()); }
|
|
|
711 |
*/
|
| 34443 |
vikas.jang |
712 |
|
| 34547 |
vikas.jang |
713 |
@Scheduled(cron = "0 50 23 * * *")
|
| 34443 |
vikas.jang |
714 |
public void bidConfirmation() throws Throwable {
|
| 34547 |
vikas.jang |
715 |
log.info("running bid cron at 23:50PM");
|
| 34443 |
vikas.jang |
716 |
runOnceTasks.processBids(ProfitMandiConstants.BID_CRON_ENUM.YESTERDAY);
|
|
|
717 |
}
|
|
|
718 |
|
| 34547 |
vikas.jang |
719 |
@Scheduled(cron = "0 0 19 * * *")
|
| 34443 |
vikas.jang |
720 |
public void processLiquidationBids() throws Throwable {
|
| 34547 |
vikas.jang |
721 |
log.info("running bid cron at 07:00PM");
|
| 34443 |
vikas.jang |
722 |
runOnceTasks.processBids(ProfitMandiConstants.BID_CRON_ENUM.TODAY);
|
|
|
723 |
}
|
|
|
724 |
|
| 34547 |
vikas.jang |
725 |
@Scheduled(cron = "0 30 21 * * *")
|
| 34443 |
vikas.jang |
726 |
public void bidPurchaseOrder() throws Throwable {
|
| 34547 |
vikas.jang |
727 |
log.info("running bid cron at 09:30PM");
|
| 34443 |
vikas.jang |
728 |
runOnceTasks.processBids(ProfitMandiConstants.BID_CRON_ENUM.TODAY);
|
|
|
729 |
}
|
| 34547 |
vikas.jang |
730 |
|
| 34669 |
amit.gupta |
731 |
/*@Scheduled(cron = "0 0 12 * * *")
|
|
|
732 |
public void processCashDiscount() throws Throwable {
|
|
|
733 |
scheduledTasks.processCashDiscount();
|
|
|
734 |
}*/
|
|
|
735 |
|
| 34563 |
vikas.jang |
736 |
@Scheduled(cron = "0 0 9,17 * * *")
|
| 34547 |
vikas.jang |
737 |
public void bidConsolidatedMessage() throws Throwable {
|
|
|
738 |
log.info("Running bid cron at 09:00 AM or 05:00 PM");
|
|
|
739 |
runOnceTasks.consolidatedBiddingMessage();
|
| 34563 |
vikas.jang |
740 |
}
|
| 34770 |
vikas.jang |
741 |
|
|
|
742 |
@Scheduled(cron = "0 0 8 * * *")
|
| 34836 |
vikas |
743 |
public void yesterdayTrackingReport() throws Throwable {
|
|
|
744 |
log.info("Running yesterday employee tracking cron at 08:00 AM");
|
|
|
745 |
runOnceTasks.yesterdayTrackingReport();
|
| 34770 |
vikas.jang |
746 |
}
|
| 34836 |
vikas |
747 |
|
| 35178 |
amit |
748 |
@Scheduled(cron = "0 10 8 * * *")
|
| 35177 |
amit |
749 |
public void partnerCreditExposureReport() throws Throwable {
|
|
|
750 |
log.info("Running yesterday employee tracking cron at 08:00 AM");
|
|
|
751 |
runOnceTasks.sendCreditExposureReport();
|
|
|
752 |
}
|
|
|
753 |
|
| 36552 |
ranu |
754 |
@Scheduled(cron = "0 0 22,16 * * *")
|
| 34836 |
vikas |
755 |
public void dailyTrackingReport() throws Throwable {
|
| 36552 |
ranu |
756 |
log.info("Running daily employee tracking cron at 10:00 PM and 04:00 PM");
|
| 34836 |
vikas |
757 |
runOnceTasks.dailyTrackingReport();
|
|
|
758 |
}
|
| 35105 |
vikas |
759 |
|
| 34792 |
amit.gupta |
760 |
@Scheduled(cron = "0 0 0 1 1,4,7,10 *")
|
|
|
761 |
public void sendUpdateMobileBrandMarketShareQuaterlyMail() throws Throwable {
|
| 34791 |
aman.kumar |
762 |
log.info("Running Marketshare update remined quaterly");
|
|
|
763 |
scheduledTasks.sendUpdateMobileBrandMarketShareQuaterlyMail();
|
|
|
764 |
}
|
| 35105 |
vikas |
765 |
|
|
|
766 |
@Scheduled(cron = "0 0 * * * *")
|
|
|
767 |
public void checkRewardsEligibility() throws Throwable {
|
|
|
768 |
log.info("Running Rewards Disburse daily");
|
|
|
769 |
runOnceTasks.checkRewardsEligibility();
|
|
|
770 |
}
|
| 35326 |
amit |
771 |
|
|
|
772 |
@Scheduled(cron="0 0 20 * * *")
|
|
|
773 |
public void sendTrialExpiry() {
|
|
|
774 |
scheduledTasks.sendTrialExpiry();
|
|
|
775 |
}
|
| 35666 |
vikas |
776 |
|
|
|
777 |
@Scheduled(cron = "0 0 0 * * *")
|
|
|
778 |
public void fetchOffersByItem() {
|
|
|
779 |
scheduledTasks.cachePinelabsOffers();
|
|
|
780 |
}
|
| 35788 |
vikas |
781 |
|
|
|
782 |
@Scheduled(cron = "0 0 0 * * *")
|
|
|
783 |
public void syncProductsToShopify() throws Exception {
|
| 36058 |
ranu |
784 |
scheduledTasks.syncProductsToShopifyByWarehouseId(ProfitMandiConstants.WAREHOUSE_NAME_MAP.get("UP-WEST/NOIDA"));
|
| 35788 |
vikas |
785 |
}
|
| 36511 |
amit |
786 |
|
| 37162 |
vikas |
787 |
@Scheduled(cron = "0 0 6,18 * * *")
|
|
|
788 |
public void syncInventoryToShopify() throws Exception {
|
|
|
789 |
scheduledTasks.syncInventoryToShopifyByWarehouseId(ProfitMandiConstants.WAREHOUSE_NAME_MAP.get("UP-WEST/NOIDA"));
|
|
|
790 |
}
|
|
|
791 |
|
| 36511 |
amit |
792 |
@Autowired
|
|
|
793 |
private WarehouseStockReconciliation warehouseStockReconciliation;
|
|
|
794 |
|
|
|
795 |
@Scheduled(cron = "0 30 5 * * *")
|
|
|
796 |
public void reconcileInventorySnapshot() throws Exception {
|
|
|
797 |
log.info("reconcileInventorySnapshot");
|
|
|
798 |
warehouseStockReconciliation.reconcile();
|
|
|
799 |
}
|
| 37159 |
amit |
800 |
|
|
|
801 |
@Autowired
|
|
|
802 |
private PartnerIdentityIntegrityMonitor partnerIdentityIntegrityMonitor;
|
|
|
803 |
|
|
|
804 |
@Scheduled(cron = "0 0 7 * * *")
|
|
|
805 |
public void partnerIdentityIntegrityMonitor() throws Exception {
|
|
|
806 |
log.info("partnerIdentityIntegrityMonitor");
|
|
|
807 |
partnerIdentityIntegrityMonitor.monitor();
|
|
|
808 |
}
|
| 23756 |
amit.gupta |
809 |
}
|