$w->orderBy('act_when ASC'); // oldest first.
- $this->logech("QUEUE is {$w->count()}");
+ $this->logecho("QUEUE is {$w->count()}");
$w->limit($opts['limit']); // we can run 1000 ...
} else {
}
-
- die("DONE\n");
+ $this->logecho("DONE");
+ exit;
}
function run($id, $email, $cmdOpts="")
function output()
{
- die("Done\n");
+ $this->logecho("DONE");
+ exit;
}
function logecho($str)
{
- echo date("Y-m-d H:i:s - $str\n");
+ echo date("Y-m-d H:i:s - ") . $str . "\n";
}
}
\ No newline at end of file