title: How to stop a node cron job
body: <p>I want to stop a node cron job on certain conditions.</p>
  
  <p>This is how I started the task to run every 1 second.</p>
  
  <pre><code>const runScheduler = (url)=&gt;{
      cron.schedule('*/1 * * * * *', () =&gt; {
          console.log('running a task every one second');
          async.waterfall([ getUrlDelay(url), dbMethods.updateUrlResponses(url) ],function(err, success){
              if(err) return console.log('Url Not Found');
          })
        });
  }
  </code></pre>
  
  <p>I want to stop this job but unable to do it.</p>