Ash update action inside Ecto transaction, trying to not rollback if transaction is rolled back

I have a validation that (probably?) happens in a transaction outside of Ash, and I'd like to run an Ash action if validation fails. But right now when the transaction is rolled back my Ash update action is being rolled back too, even if wrapped in a new Ash.DataLayer.transaction. Any ideas how I could have it not be rolled back?
2 Replies
pikdum
pikdumOP3mo ago
Probably describing it bad, but I'm trying to use that Ash update action to clean up the invalid state things got into. Some things I've tried: * wrap in Ash.DataLayer.transaction * rollback_on_error?: false
ZachDaniel
ZachDaniel3mo ago
I might need some more details, sorry Maybe an example

Did you find this page helpful?