From 8a973c38b5dc17520c6e45dea55e22729cea3e97 Mon Sep 17 00:00:00 2001 From: Noah Metz Date: Tue, 17 Oct 2023 15:17:44 -0600 Subject: [PATCH] Save node on parsing queued signal, look into saving after signals queued as well to mirror(or saving signal queue to a different db key) --- node.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/node.go b/node.go index 07bc8b5..3ea825c 100644 --- a/node.go +++ b/node.go @@ -378,6 +378,11 @@ func nodeLoop(ctx *Context, node *Node) error { } else { ctx.Log.Logf("node", "NODE_TIMEOUT(%s) - PROCESSING %+v@%s - NEXT_SIGNAL: %s@%s", node.ID, signal, t, node.NextSignal, node.NextSignal.Time) } + + err = WriteNode(ctx, node) + if err != nil { + ctx.Log.Logf("node", "Node Write Error: %s", err) + } } ctx.Log.Logf("node", "NODE_SIGNAL_QUEUE[%s]: %+v", node.ID, node.SignalQueue)