mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-07 05:11:05 +01:00
d028790dd7
Summary: Fixes T2933 Test Plan: As guided by Evan - by setting $tasks = array(); in PhabricatorTaskmasterDaemon.php and running 'phd debug taskmaster' and 'show full processlist' on mysql as root. No extra connections detected. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Maniphest Tasks: T2933 Differential Revision: https://secure.phabricator.com/D5654
17 lines
373 B
PHP
17 lines
373 B
PHP
<?php
|
|
|
|
abstract class PhabricatorDaemon extends PhutilDaemon {
|
|
|
|
protected function willRun() {
|
|
parent::willRun();
|
|
|
|
$phabricator = phutil_get_library_root('phabricator');
|
|
$root = dirname($phabricator);
|
|
require_once $root.'/scripts/__init_script__.php';
|
|
}
|
|
|
|
protected function willSleep($duration) {
|
|
LiskDAO::closeAllConnections();
|
|
return;
|
|
}
|
|
}
|