added new daemon events work
This commit is contained in:
parent
a4762ccf9a
commit
66aafb6deb
3 changed files with 95 additions and 10 deletions
36
docs/dev/daemon-events.md
Normal file
36
docs/dev/daemon-events.md
Normal file
|
@ -0,0 +1,36 @@
|
|||
# DaemonEvents
|
||||
|
||||
For things that need to be processed by the daemon
|
||||
|
||||
Observer pattern
|
||||
|
||||
Register listeners dynamically per event
|
||||
|
||||
Spawn new greenlets
|
||||
|
||||
-------------------
|
||||
|
||||
## Attributes
|
||||
|
||||
events: dict
|
||||
|
||||
schema:
|
||||
|
||||
{
|
||||
"event_id": dict{
|
||||
"event_name": string,
|
||||
"result_data": bytes,
|
||||
"started": epoch,
|
||||
"finished": epoch,
|
||||
"done": bool
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
--------------------
|
||||
|
||||
MsgPack schema:
|
||||
|
||||
event_name: string
|
||||
event_id: uuid4
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue