Subversion Repositories SmartDukaan

Rev

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

Rev 37472 Rev 37482
Line 396... Line 396...
396
 
396
 
397
        log.info("endTimevivoImeiActivation" + LocalDateTime.now());
397
        log.info("endTimevivoImeiActivation" + LocalDateTime.now());
398
 
398
 
399
    }
399
    }
400
 
400
 
-
 
401
    /**
-
 
402
     * Itel activation from Carlcare, Transsion's own after-sales endpoint. 50 imeis every 5
-
 
403
     * minutes, which spreads the work over the whole day rather than bursting: 14,400 lookups a
-
 
404
     * day against a pending pool of ~10,400.
-
 
405
     *
-
 
406
     * The 5-minute cadence is safe here in a way it was not for vivo, whose comment below records
-
 
407
     * why that pattern ran away: there, a failed lookup wrote no row, so createTimestamp was not
-
 
408
     * bumped and the same imei was eligible again five minutes later. This service stamps the row
-
 
409
     * on EVERY outcome, failures included, so each tick advances past the imeis it asked about
-
 
410
     * and a failure costs one retry tomorrow rather than one every five minutes.
-
 
411
     *
-
 
412
     * It is one plain signed GET per imei -- no captcha solver, no ChromeDriver -- so it does not
-
 
413
     * contend with the oppo/realme pass. Both this and the 23:00 DCR pull write Itel rows and
-
 
414
     * need no coordination: the pool query returns only imeis whose activationTimestamp is still
-
 
415
     * null, so whatever one has filled has already left the other's pool.
-
 
416
     */
-
 
417
    @Scheduled(fixedDelay = 5 * 60 * 1000)
-
 
418
    public void carlcareImeiActivation() throws Throwable {
-
 
419
        scheduledTasks.checkCarlcareImeiActivation();
-
 
420
    }
-
 
421
 
401
    @Scheduled(cron = "0 0 8 * * *")
422
    @Scheduled(cron = "0 0 8 * * *")
402
    public void reviewUncontactablePartner() throws Throwable {
423
    public void reviewUncontactablePartner() throws Throwable {
403
        log.info("startTime" + LocalDateTime.now());
424
        log.info("startTime" + LocalDateTime.now());
404
 
425
 
405
        scheduledTasks.reviewUncontactablePartner();
426
        scheduledTasks.reviewUncontactablePartner();