Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Commit

Permalink
Merge pull request #1624 from alexispeter/daemon-keepalive
Browse files Browse the repository at this point in the history
keep daemon processes alive - do not track them in newrelic
  • Loading branch information
alexispeter committed Feb 2, 2015
2 parents fe9c49e + 3af725c commit ee807b2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions library/CM/Elasticsearch/Index/Cli.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ public function optimize() {
}
}

/**
* @keepalive
*/
public function startMaintenance() {
$clockwork = new CM_Clockwork_Manager();
$storage = new CM_Clockwork_Storage_FileSystem('search-maintenance');
Expand Down
4 changes: 4 additions & 0 deletions library/CM/Maintenance/Cli.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ class CM_Maintenance_Cli extends CM_Cli_Runnable_Abstract {

/**
* @synchronized
* @keepalive
*/
public function start() {
$this->_clockworkManager = new CM_Clockwork_Manager();
Expand All @@ -17,6 +18,9 @@ public function start() {
$this->_clockworkManager->start();
}

/**
* @keepalive
*/
public function startLocal() {
$this->_clockworkManager = new CM_Clockwork_Manager();
$storage = new CM_Clockwork_Storage_FileSystem('app-maintenance-local');
Expand Down
1 change: 1 addition & 0 deletions library/CM/Stream/Cli.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ class CM_Stream_Cli extends CM_Cli_Runnable_Abstract {

/**
* @synchronized
* @keepalive
*/
public function startMessageSynchronization() {
CM_Stream_Message::getInstance()->startSynchronization();
Expand Down

0 comments on commit ee807b2

Please sign in to comment.