onyx

FYI: alternative Onyx :onyx: chat is at <https://gitter.im/onyx-platform/onyx> ; log can be found at <https://clojurians-log.clojureverse.org/onyx/index.html>
sparkofreason 2018-04-26T04:05:23.000145Z

Is it possible/advisable to have a trigger based on window state?

lucasbradstreet 2018-04-26T04:09:27.000164Z

You mean decide whether to trigger based on what is in the window state?

sparkofreason 2018-04-26T04:09:55.000081Z

Yes

lucasbradstreet 2018-04-26T04:10:59.000240Z

If so, yes, that’s perfectly fine. You can set :window-state in http://www.onyxplatform.org/docs/cheat-sheet/latest/#trigger-entry/:trigger/state-context. That way Onyx will not maintain trigger state.

sparkofreason 2018-04-26T04:12:56.000202Z

Nice!

sparkofreason 2018-04-26T04:16:04.000193Z

I take it in that case you only need :trigger/trigger-fire? in the trigger definition.

lucasbradstreet 2018-04-26T04:19:36.000095Z

IIRC, yes.

2018-04-26T14:43:13.000710Z

Does onyx-local rt support water mark functionality? e.g

:onyx/assign-watermark-fn ::watermark-fn
:trigger/on :onyx.triggers/watermark
 :trigger/state-context [:window-state]

dbernal 2018-04-26T15:10:13.000956Z

Can an aggregation task happen on multiple peers?

lucasbradstreet 2018-04-26T20:01:18.000218Z

@drewverlee should do, though it’s possible we don’t support window-state triggers yet. I think we do though.

lucasbradstreet 2018-04-26T20:01:56.000398Z

@dbernal yes. You will end up with hash-routing on the group-by key, and if you have say 10 peers, you will always end up with the same group key on the same peer slot.

1👍
lucasbradstreet 2018-04-26T22:32:54.000064Z

onyx-plugin template 0.12.7.1 is out https://github.com/onyx-platform/onyx-plugin, thanks to the hard work of Joaquim Torres on our gitter.

lucasbradstreet 2018-04-26T22:33:05.000097Z

It’s a really big deal as it had not been updated for the new plugin model yet.

6👍