Subversion Repositories SmartDukaan

Rev

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

Rev 37395 Rev 37447
Line 508... Line 508...
508
    private StandAlone standAlone;
508
    private StandAlone standAlone;
509
 
509
 
510
    @Autowired
510
    @Autowired
511
    OrderTrackingService orderTrackingService;
511
    OrderTrackingService orderTrackingService;
512
 
512
 
-
 
513
    // One job per brand, not one per pool: each @Scheduled method used to open its own
-
 
514
    // ChromeDriver, so oppo and realme ran four browsers between them. Combined, the two
-
 
515
    // pools share a single session. checkOppoImeiStatus/Tertiary are left in place for
-
 
516
    // manual invocation but are no longer scheduled.
513
    @Scheduled(fixedDelay = 5 * 60 * 1000)
517
    @Scheduled(fixedDelay = 5 * 60 * 1000)
514
    public void oppo() throws Throwable {
518
    public void oppo() throws Throwable {
515
        standAlone.checkOppoImeiStatus();
-
 
516
    }
-
 
517
 
-
 
518
    @Scheduled(fixedDelay = 5 * 60 * 1000)
-
 
519
    public void oppoTertiary() throws Throwable {
-
 
520
        standAlone.checkOppoImeiStatusTertiary();
519
        standAlone.checkOppoImeiStatusCombined();
521
    }
520
    }
522
 
521
 
523
    @Scheduled(fixedDelay = 5 * 60 * 1000)
522
    @Scheduled(fixedDelay = 5 * 60 * 1000)
524
    public void realme() throws Throwable {
523
    public void realme() throws Throwable {
525
        standAlone.checkRealmeImeiStatus();
-
 
526
    }
-
 
527
 
-
 
528
    @Scheduled(fixedDelay = 5 * 60 * 1000)
-
 
529
    public void realmeTertiary() throws Throwable {
-
 
530
        standAlone.checkRealmeImeiStatusTertiary();
524
        standAlone.checkRealmeImeiStatusCombined();
531
    }
525
    }
532
 
526
 
533
    @Scheduled(cron = "0 0 * * * *")
527
    @Scheduled(cron = "0 0 * * * *")
534
    public void markBlueDartOrderDelivered() throws Throwable {
528
    public void markBlueDartOrderDelivered() throws Throwable {
535
        log.info("startTime" + LocalDateTime.now());
529
        log.info("startTime" + LocalDateTime.now());