title: Quartz.net fail-over setup : Incorrect first run of the job
body: <p>I successfully set up a two node scheduler cluster to execute a job. I used <strong>OracleODP-20</strong> connector to connect to oracle database, where the <strong>QRTZ_</strong> tables are created. Job scheduled is also getting executed by either one of the scheduler in every 5 minutes.</p>
  
  <p>This is my trigger:</p>
  
  <pre><code>ISimpleTrigger trigger = (ISimpleTrigger) TriggerBuilder.Create()
                                                            .WithIdentity("mytrigger", schedId)
                                                            .StartNow()
                                                            .WithSimpleSchedule(x =&gt; x.WithRepeatCount(-1).WithInterval(TimeSpan.FromMinutes(5)))
                                                            .Build();
  </code></pre>
  
  <p>But there is one problem.When the scheduler is starting up, it always executes
  the job, even if time for the next execution of the job is not now.</p>
  
  <p>e.g., </p>
  
  <ul>
  <li>Job1 will run every 5 minutes.</li>
  <li>Scheduler1 started at 10.00 and it
  executes the Job1 and is waiting for 10.05 for the next execution.</li>
  <li>When i start Scheduler2 at 10.01, even though Job1 was supposed to
  run next 10.05, it will run at 10.01</li>
  </ul>
  
  <p>After this initial run, the Job1 will be executed by only one of the scheduler and it goes fine.</p>
  
  <p>But I am not sure how to tell
  the Scheduler2 that, the job is already executed by Scheduler1 and don't execute it till the next fire time.</p>
  
  <p>Any help in this?</p>