I am trying to create one timer job in SharePoint 2013 Now I want to set 1 minute in timer job using event receiver after deploy timer job in farm solution.

Now timer jobs run perfectly but its run as per default time 15 minutes By Sharepoint.

I want to set time In timer job as per event receiver set.

I tried the following:

  private bool CreateJob(SPWebApplication site)
        bool jobCreated = false;
            TimerJobDemo job = new TimerJobDemo(JobName, site);
            SPMinuteSchedule schedule = new SPMinuteSchedule();
            schedule.BeginSecond = 0;
            schedule.EndSecond = 59;
            schedule.Interval = 1;
            job.Schedule = schedule;


        catch (Exception)
            return jobCreated;
        return jobCreated;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.