/usr/share/php/Horde/Queue/Runner/RequestShutdown.php is in php-horde-queue 1.1.3-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | <?php
class Horde_Queue_Runner_RequestShutdown extends Horde_Queue_Runner
{
public function __construct(Horde_Queue_Storage $storage)
{
parent::__construct($storage);
register_shutdown_function(array($this, 'run'));
}
public function run()
{
try {
while ($tasks = $this->_storage->getMany()) {
foreach ($tasks as $task) {
$this->runTask($task);
}
}
} catch (Horde_Queue_Exception $e) {
}
}
}
|