/** * Delete all status file after exit() called * */ public final function shutdown($force = false) { if ($this->parent_pid == posix_getpid()) { $this->logger->info("Shutdown in progress, cleaning environment"); Lock::release(); Status::release(); Queue::release(); Planner::release(); } if ($force === true) { $this->logger->info("Shutdown in progress, cleaning environment"); Status::release(); Queue::release(); Planner::release(); } }
public function testRelease() { $result = \Comodojo\Extender\Lock::release(); $this->assertTrue($result); }