mirror of
https://github.com/idanoo/php-resque.git
synced 2024-11-22 00:11:53 +00:00
Move declare(ticks = 1) to top
This commit is contained in:
parent
16f88a6a38
commit
91caca7921
@ -1,4 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
declare(ticks = 1);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Resque worker that handles checking queues for jobs, fetching them
|
* Resque worker that handles checking queues for jobs, fetching them
|
||||||
* off the queues, running them and handling the result.
|
* off the queues, running them and handling the result.
|
||||||
@ -311,8 +313,6 @@ class Resque_Worker
|
|||||||
*/
|
*/
|
||||||
private function startup()
|
private function startup()
|
||||||
{
|
{
|
||||||
declare(ticks = 1);
|
|
||||||
|
|
||||||
$this->registerSigHandlers();
|
$this->registerSigHandlers();
|
||||||
$this->pruneDeadWorkers();
|
$this->pruneDeadWorkers();
|
||||||
Resque_Event::trigger('beforeFirstFork', $this);
|
Resque_Event::trigger('beforeFirstFork', $this);
|
||||||
|
Loading…
Reference in New Issue
Block a user