This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-07-25
Channels
- # admin-announcements (2)
- # beginners (36)
- # boot (37)
- # cider (65)
- # cljsrn (92)
- # clojars (3)
- # clojure (225)
- # clojure-austin (5)
- # clojure-belgium (2)
- # clojure-brasil (3)
- # clojure-china (1)
- # clojure-greece (2)
- # clojure-mexico (3)
- # clojure-news (2)
- # clojure-quebec (1)
- # clojure-russia (14)
- # clojure-spec (24)
- # clojure-uk (53)
- # clojurescript (34)
- # cursive (14)
- # datascript (9)
- # datomic (4)
- # defnpodcast (8)
- # devcards (30)
- # dirac (7)
- # editors (7)
- # emacs (1)
- # figwheel (1)
- # hoplon (85)
- # immutant (2)
- # incanter (1)
- # luminus (5)
- # off-topic (41)
- # om (18)
- # onyx (11)
- # perun (2)
- # re-frame (11)
- # reagent (9)
- # ring (3)
- # spacemacs (2)
- # spirituality-ethics (1)
- # test-check (19)
- # testing (12)
- # untangled (14)
- # yada (9)
I see protocol is hardcoded to "http"
when (= client-type :http)
. Could this be configurable so the user could specify https
? https://github.com/onyx-platform/onyx-elasticsearch/blob/0a6617db5cd45637dbe153e679df2272a5cff4f8/src/onyx/plugin/elasticsearch.clj#L22
Certainly. We would accept a PR for that
I may have asked this question before but so I will apologize in advance, lol. We have the need to write/query a couple DB’s ( cassandra/elasticsearch) in our trigger. What is the best way to deal with DB connections so we don’t have to reconnect every time the trigger is called ( if possible )?
@camechis: You have access to the Event map in the sync
function. Use lifecycles to add connections to the event map before the task starts.
nice, sounds good. I thought this might be possible, refreshing my memory will the lifecycle run each time? For instance it can double check the connection and reset if it needs to be?
@camechis: lifecycle/before-task-start
will run only once. You could throw an exception if the connection has been closed and configure the task to restart when it throws. Then the lifecycle will be run again. If I remember correctly, that is.
@camechis: There’s also some task bundles for joplin migrations here https://github.com/onyx-platform/lib-onyx/blob/master/src/lib_onyx/joplin.clj
We support cassandra migrations