mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-10 19:43:16 +00:00
Fix build
This commit is contained in:
@@ -25,6 +25,7 @@ use Symfony\Component\Console\Command\Command;
|
|||||||
|
|
||||||
class module_console_taskrun extends Command
|
class module_console_taskrun extends Command
|
||||||
{
|
{
|
||||||
|
|
||||||
private $task;
|
private $task;
|
||||||
private $shedulerPID;
|
private $shedulerPID;
|
||||||
|
|
||||||
@@ -110,12 +111,16 @@ $this->task->log(sprintf("%s [%d] taskrun : returned from 'run()', get_status()=
|
|||||||
{
|
{
|
||||||
$runner = task_abstract::RUNNER_MANUAL;
|
$runner = task_abstract::RUNNER_MANUAL;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public function tick_handler()
|
public function tick_handler()
|
||||||
{
|
{
|
||||||
static $start = FALSE;
|
static $start = FALSE;
|
||||||
|
|
||||||
if ($start === FALSE)
|
if ($start === FALSE)
|
||||||
|
{
|
||||||
$start = time();
|
$start = time();
|
||||||
|
}
|
||||||
|
|
||||||
if (time() - $start > 0)
|
if (time() - $start > 0)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user