mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 09:34:39 +00:00
ass sendBackgroundEvent to Backend class
This commit is contained in:
parent
1fa570b315
commit
a825ec10d1
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user