Subversion Repositories SmartDukaan

Rev

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

Rev 32690 Rev 32782
Line 2... Line 2...
2
 
2
 
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.spice.profitmandi.common.exception.ProfitMandiBusinessException;
-
 
8
import org.apache.logging.log4j.LogManager;
7
import org.apache.logging.log4j.LogManager;
9
import org.apache.logging.log4j.Logger;
8
import org.apache.logging.log4j.Logger;
10
import org.springframework.beans.factory.annotation.Autowired;
9
import org.springframework.beans.factory.annotation.Autowired;
11
import org.springframework.scheduling.annotation.Scheduled;
10
import org.springframework.scheduling.annotation.Scheduled;
12
import org.springframework.stereotype.Component;
11
import org.springframework.stereotype.Component;
Line 569... Line 568...
569
    @Scheduled(fixedDelay = 60 * 1000)
568
    @Scheduled(fixedDelay = 60 * 1000)
570
    public void oppo() throws Throwable {
569
    public void oppo() throws Throwable {
571
        standAlone.checkOppoImeiStatus();
570
        standAlone.checkOppoImeiStatus();
572
    }
571
    }
573
 
572
 
574
    @Scheduled(cron = "0 0 * * * *")
573
    @Scheduled(cron = "0 0 0/1 1/1 * ? *")
575
    public void markBlueDartOrderDelivered() throws Throwable {
574
    public void markBlueDartOrderDelivered() throws Throwable {
576
        log.info("startTime" + LocalDateTime.now());
575
        log.info("startTime" + LocalDateTime.now());
577
        scheduledTasks.markBlueDartOrderDelivered();
576
        scheduledTasks.markBlueDartOrderDelivered();
578
        log.info("endTime" + LocalDateTime.now());
577
        log.info("endTime" + LocalDateTime.now());
579
    }
578
    }