Subversion Repositories SmartDukaan

Rev

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

Rev 37447 Rev 37448
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
513
    // Oppo runs its two pools in PARALLEL again (r37447 merged them; measured cost was
514
    // ChromeDriver, so oppo and realme ran four browsers between them. Combined, the two
514
    // 5,280 -> 3,456/day because merging serialises the work, and at ~21s/imei merged
515
    // pools share a single session. checkOppoImeiStatus/Tertiary are left in place for
515
    // there is no batch size or delay that reaches its target). Two drivers for oppo is
516
    // manual invocation but are no longer scheduled.
516
    // the price of its throughput; realme stays merged since it has headroom.
517
    @Scheduled(fixedDelay = 5 * 60 * 1000)
517
    @Scheduled(fixedDelay = 5 * 60 * 1000)
518
    public void oppo() throws Throwable {
518
    public void oppo() throws Throwable {
-
 
519
        standAlone.checkOppoImeiStatus();
-
 
520
    }
-
 
521
 
-
 
522
    @Scheduled(fixedDelay = 5 * 60 * 1000)
-
 
523
    public void oppoTertiary() throws Throwable {
519
        standAlone.checkOppoImeiStatusCombined();
524
        standAlone.checkOppoImeiStatusTertiary();
520
    }
525
    }
521
 
526
 
522
    @Scheduled(fixedDelay = 5 * 60 * 1000)
527
    @Scheduled(fixedDelay = 5 * 60 * 1000)
523
    public void realme() throws Throwable {
528
    public void realme() throws Throwable {
524
        standAlone.checkRealmeImeiStatusCombined();
529
        standAlone.checkRealmeImeiStatusCombined();