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


  • 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();
    JobDetail jobDetail = new JobDetail("mySendMailJob", typeof(SendMailJob));
    Trigger trigger = TriggerUtils.MakeDailyTrigger(17, 29);
    .Name = "mySendMailTrigger";
    .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


All replies