none
How to check a scheduler is already executed or not in windows azure

    Question

  • I have a big problem that is i am implemented a scheduler in my windows azure application that can execute a particular task in each day at 17.29. For the implementation i am using a third party tool that is quarts. And i use following code to enable my scheduler

        ISchedulerFactory schedFact = new StdSchedulerFactory();
       
    IScheduler sched = schedFact.GetScheduler();
        sched
    .Start();
       
    JobDetail jobDetail = new JobDetail("mySendMailJob", typeof(SendMailJob));
       
    Trigger trigger = TriggerUtils.MakeDailyTrigger(17, 29);
        trigger
    .Name = "mySendMailTrigger";
        sched
    .ScheduleJob(jobDetail, trigger);

    And i place this code in my application start.

    My question is if i execute this code(above given) once then my scheduler start it working. Next time need not invoke. So how can i check if the scheduler is already invoke or not. If i place this code in application start each time execute the same code, that is totally useless. If there is any methode. If anyone knw please help me. I am using c#.Net

    Tuesday, June 26, 2012 6:26 AM

Answers

All replies