ass sendBackgroundEvent to Backend class

This commit is contained in:
Ad Schellevis 2015-04-06 16:01:56 +02:00
parent 1fa570b315
commit a825ec10d1

View File

@ -88,4 +88,16 @@ class Backend
return $resp;
}
/**
* send event to backend, but prefix & to force it to run in background
* @param string $event event string
* @param int $timeout timeout in seconds
* @return string (message uuid from configd)
* @throws \Exception
*/
public function sendBackgroundEvent($event, $timeout = 120)
{
return $this->sendEvent('&'.$event, $timeout);
}
}