Subversion Repositories SmartDukaan

Rev

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

Rev 32881 Rev 32907
Line 3... Line 3...
3
import com.smartdukaan.cron.migrations.RunOnceTasks;
3
import com.smartdukaan.cron.migrations.RunOnceTasks;
4
import com.smartdukaan.cron.monitored.NagiosMonitorTasks;
4
import com.smartdukaan.cron.monitored.NagiosMonitorTasks;
5
import com.smartdukaan.cron.properties.WriteToPropertiesFile;
5
import com.smartdukaan.cron.properties.WriteToPropertiesFile;
6
import com.smartdukaan.cron.scheduled.leadsync.LeadSyncRunner;
6
import com.smartdukaan.cron.scheduled.leadsync.LeadSyncRunner;
7
import com.smartdukaan.cron.scheduled.ordertracking.OrderTrackingService;
7
import com.smartdukaan.cron.scheduled.ordertracking.OrderTrackingService;
-
 
8
import com.smartdukaan.cron.scheduled.purchaseorder.POScheduler;
8
import org.apache.logging.log4j.LogManager;
9
import org.apache.logging.log4j.LogManager;
9
import org.apache.logging.log4j.Logger;
10
import org.apache.logging.log4j.Logger;
10
import org.springframework.beans.factory.annotation.Autowired;
11
import org.springframework.beans.factory.annotation.Autowired;
11
import org.springframework.scheduling.annotation.Scheduled;
12
import org.springframework.scheduling.annotation.Scheduled;
12
import org.springframework.stereotype.Component;
13
import org.springframework.stereotype.Component;
Line 697... Line 698...
697
 
698
 
698
    @Scheduled(cron = "0 0 12 * * *")
699
    @Scheduled(cron = "0 0 12 * * *")
699
    public void rejectPriceDropsOfApprovedImeis() throws Throwable {
700
    public void rejectPriceDropsOfApprovedImeis() throws Throwable {
700
        scheduledTasks.rejectPriceDropsOfApprovedImeis();
701
        scheduledTasks.rejectPriceDropsOfApprovedImeis();
701
    }
702
    }
-
 
703
 
-
 
704
    @Autowired
-
 
705
    POScheduler poScheduler;
-
 
706
    @Scheduled(cron = "0 0 1 * * *")
-
 
707
    public void autoClosePO() throws Throwable {
-
 
708
        poScheduler.autoClosePurchaseOrders();
-
 
709
    }
702
    /*
710
    /*
703
     * @Scheduled(cron = "0 0 9 * * *") public void onBoardingDocumentsPending()
711
     * @Scheduled(cron = "0 0 9 * * *") public void onBoardingDocumentsPending()
704
     * throws Throwable { log.info("startTime" + LocalDateTime.now());
712
     * throws Throwable { log.info("startTime" + LocalDateTime.now());
705
     * onBoardingRelatedSchelduleTask.onBoardingDocumentsPending();
713
     * onBoardingRelatedSchelduleTask.onBoardingDocumentsPending();
706
     * log.info("endTime" + LocalDateTime.now()); }
714
     * log.info("endTime" + LocalDateTime.now()); }