Beispiel #1
0
 /**
  * Deserialize magic method.
  */
 public function __wakeup()
 {
     if (empty($this->_status_before_enqueue_)) {
         return;
     }
     $status = $this->_status_before_enqueue_;
     self::$scheme = self::serializeOrDeserializeScheme($status['scheme']);
     self::$agentsConfig = $status['agentsConfig'];
     Balancer::destroy(self::TASK_NAME);
     self::bootstrap();
     self::reinstallHandlers($status['handlers']);
 }
Beispiel #2
0
 /**
  * tear down agents config
  */
 public static function cleanAgentsConfig()
 {
     self::$agentsConfig = [];
 }