This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-04-02
Channels
- # announcements (2)
- # aws (7)
- # babashka (47)
- # beginners (54)
- # biff (6)
- # calva (14)
- # clojure-europe (7)
- # clojure-germany (2)
- # clojure-japan (4)
- # clojure-norway (5)
- # datalevin (1)
- # deps-new (13)
- # helix (5)
- # hoplon (1)
- # hyperfiddle (12)
- # introduce-yourself (6)
- # joyride (1)
- # malli (2)
- # off-topic (21)
- # polylith (11)
- # re-frame (3)
- # reitit (8)
- # remote-jobs (1)
- # scittle (25)
- # shadow-cljs (20)
- # vim (19)
- # xtdb (4)
Question regarding transaction functions. Is there any way to find out if a transaction function failed and how it failed?
Hey @U0545PBND there are definitely more strategies for this during dev vs. when running in prod, but not much has changed since the last time(s) this was discussed https://clojurians.slack.com/archives/CG3AM2F7V/p1653320530122689
Some tl:dr; options though:
1. you can use logging inside the function
2. you can use with-tx to examine the operations one-by-one (gradually building up to the complete tx)
3. you can try/catch then ::xt/put
the errors in as regular documents