Jobs: How to tell if the last job is still running?

Permalink
Hi

I have created a job which I kick off every 5 minutes using a cron job.

The job take longer than 5 minutes to run, so I don't want the job to run again until after the previous one has finished.

I'm trying...

function run() {
   if ($this->jStatus=='RUNNING')
   return "Already Running!";
....

Will this work?

Cheers
Russell

russellfeeed