title: Setting max_execution_time per cron job
body: <p>I am running a particular WordPress cron job which takes a lot of time to complete as it does remote requests.</p>
  
  <p>I want to increase the <code>max_execution_time</code> of only this task.</p>
  
  <p>If I use <code>ini_set()</code> inside the cron function like the following will it work?</p>
  
  <pre><code>wp_schedule_event( time(), 'daily', 'cronjob' );
  
  add_action( 'cronjob', 'cronjob_func' );
  
  function cronjob_func() {
      @ini_set( "max_execution_time", 600 );
      //Rest of the code
  }
  </code></pre>