Once you send your first event.
darron opened this issue · 3 comments
darron commented
Then STDIN isn't empty going forward. So it will still fire WAY more often than you want.
Need to check and see if this node has seen that particular LTime
yet. If it hasn't - run again. If it has - don't do the thing.
Will maybe store the last known and highest LTtime in:
sifter/event-name/hostname
darron commented
Partially there as of this evening. Need to properly parse JSON Array values and it will work.
darron commented
It's "working" with this one hack in place:
https://github.com/darron/sifter/blob/master/commands/sifter.go#L56-L59
Has helped to make sure it doesn't create many, many more processes than it should - but broken with more than 1 event in the payload.
darron commented