Commit a825ec10 authored by Ad Schellevis's avatar Ad Schellevis

ass sendBackgroundEvent to Backend class

parent 1fa570b3
......@@ -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);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment