From 91ad8a2f8ae61d45c0958b26bb0978bf0a9ab7f1 Mon Sep 17 00:00:00 2001 From: Siraaj Khandkar Date: Mon, 20 Aug 2018 13:47:56 -0400 Subject: [PATCH] Add redesign note to decouple sleep from sensor --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 15edcb3..601bf4c 100644 --- a/README.md +++ b/README.md @@ -183,3 +183,12 @@ Redesign notes - controller should not do formatting - need in-memory db for diskless feedback/throttling and cache +- decouple sensor execution from sleep, i.e. a sensor is blocked not by sleep + process directly, but by reading of a pipe, to where a sleep process will + write a message announcing interval completion and thus signaling execution. + This will allow us to manually signal a sensor to update (concretely - I just + openned my laptop from sleep and want to force the weather to update + immediately); likewise, the sleep process should be blocked on pipe-read + until sensor execution is complete - this will allow us to reconfigure + intervals at runtime (which seems like a better idea than the above in-memory + DB one). -- 2.20.1