How to get Scheduler details while a Job running?

Hi,
I have a custom scheduler and for which I have a created a scheduler job. I want to read the fields like Job URL, Status, Interval, etc from Job record in the custom scheduler code as I need to manipulate one of these field while the job is running.

Thank you in Advance.

Parents Reply Children
  • I've never done this, but this should work:

    For example, a custom scheduler:

    custom/Extension/modules/Schedulers/Ext/ScheduledTasks/YourSchedHere.php

    will look something like:

    <?php

    array_push($job_strings, 'YourScheduler);

    function YourScheduler($job){

      $scheduler_id = $job->scheduler_id;

      <your custom code>

      return(true);

    }

    ?>