- Updates daemon status to CONSTs

- Uncomments temporary commented out code
- Removes unnecessary exception handles in Public API
This commit is contained in:
Vlad
2016-05-02 10:32:34 -04:00
parent b38742ddc0
commit 756dbb4641
4 changed files with 27 additions and 28 deletions

View File

@@ -10,10 +10,14 @@ class CronHelper {
const DAEMON_EXECUTION_LIMIT = 20;
const DAEMON_EXECUTION_TIMEOUT = 35;
const DAEMON_REQUEST_TIMEOUT = 2;
const DAEMON_STATUS_STOPPED = 'stopped';
const DAEMON_STATUS_STOPPING = 'stopping';
const DAEMON_STATUS_STARTED = 'started';
const DAEMON_STATUS_STARTING = 'starting';
static function createDaemon($token) {
$daemon = array(
'status' => 'starting',
'status' => self::DAEMON_STATUS_STARTING,
'counter' => 0,
'token' => $token
);