public function __construct($queues)
{
$this->logger = new Resque_Log();
if (!is_array($queues)) {
$queues = array($queues);
}
$this->queues = $queues;
$this->hostname = php_uname('n');
$this->id = $this->hostname . ':' . getmypid() . ':' . implode(',', $this->queues);
}