Fork me on GitHub
#xtdb
<
2023-04-02
>
emil0r16:04:37

Question regarding transaction functions. Is there any way to find out if a transaction function failed and how it failed?

tatut10:04:11

tx-committed? but that is for the whole tx

refset15:04:18

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

emil0r20:04:38

Thanks 🙂

🙏 2