darron/sifter

Once you send your first event.

darron opened this issue · 3 comments

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

Partially there as of this evening. Need to properly parse JSON Array values and it will work.

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.

And LTime is being stored: