Subversion Repositories SmartDukaan

Rev

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

Rev 37565 Rev 37589
Line 654... Line 654...
654
    //@Scheduled(cron = "0 30 6 4 * ?")
654
    //@Scheduled(cron = "0 30 6 4 * ?")
655
    public void resetHardLimit() throws Throwable {
655
    public void resetHardLimit() throws Throwable {
656
        scheduledTasks.resetHardLimit();
656
        scheduledTasks.resetHardLimit();
657
    }
657
    }
658
 
658
 
-
 
659
    /**
-
 
660
     * Investment snapshot for every active partner, then the credit limit for the partners whose
-
 
661
     * base moved. Replaces the old 20-minute full rescan: the limit now follows a payment within
-
 
662
     * ~2 minutes instead of up to 20, which matters because a quarter of advance payments are
-
 
663
     * followed by an order within five minutes.
-
 
664
     */
-
 
665
    @Scheduled(cron = "0 0/2 * * * *")
-
 
666
    public void sweepPartnerInvestment() throws Throwable {
-
 
667
        batchScheduledTasks.sweepPartnerInvestment();
-
 
668
    }
-
 
669
 
-
 
670
    /**
-
 
671
     * Full safety-net pass: recomputes every partner's limit regardless of whether the sweep saw the
-
 
672
     * base move. Covers anything the sweep could not observe — a changed listing price that moves
-
 
673
     * stock value for every holder, or a snapshot write that was lost.
-
 
674
     */
659
    @Scheduled(cron = "0 0/20 * * * *")
675
    @Scheduled(cron = "0 0/20 * * * *")
660
    public void updatePartnerLimit() throws Throwable {
676
    public void updatePartnerLimit() throws Throwable {
661
        batchScheduledTasks.updatePartnerLimitWithBatch();
677
        batchScheduledTasks.updatePartnerLimitWithBatch();
662
    }
678
    }
663
 
679
 
-
 
680
    /** Aged-Apple and live-demo haircuts move with the clock, so they are refreshed once a day. */
-
 
681
    @Scheduled(cron = "0 20 0 * * *")
-
 
682
    public void refreshAgedStockDaily() throws Throwable {
-
 
683
        batchScheduledTasks.refreshAgedStockDaily();
-
 
684
    }
-
 
685
 
664
    @Scheduled(cron = "0 0 9,14,18 * * *")
686
    @Scheduled(cron = "0 0 9,14,18 * * *")
665
    public void createOpeningStockPartyWise() throws Throwable {
687
    public void createOpeningStockPartyWise() throws Throwable {
666
        scheduledTasks.createOpeningStockPartyWise();
688
        scheduledTasks.createOpeningStockPartyWise();
667
    }
689
    }
668
 
690