예제 #1
0
 public function setUp()
 {
     \INIT::$DEBUG = false;
     $this->_TMInstance = TaskManager::getInstance(null, __DIR__ . DIRECTORY_SEPARATOR . 'tm_config.ini');
     $this->_redisClient = new \RedisHandler();
     $this->_redisClient->getConnection()->set(RedisKeys::VOLUME_ANALYSIS_PID, 1224);
     for ($i = 0; $i < 30; $i++) {
         $this->_redisClient->getConnection()->sadd('ch_pid_set_p1', mt_rand(15, 20000));
         $this->_redisClient->getConnection()->sadd('ch_pid_set_p2', mt_rand(20001, 40000));
         $this->_redisClient->getConnection()->sadd('ch_pid_set_p3', mt_rand(40001, 65535));
     }
 }
예제 #2
0
<?php

include_once realpath(dirname(__FILE__) . '/../../../') . "/inc/Bootstrap.php";
Bootstrap::start();
use TaskRunner\TaskManager;
TaskManager::getInstance(@$argv[1], @$argv[2])->main();