mcoll
AEAsh Elixir
•Created by mcoll on 5/21/2025 in #support
AshOban job failures
Let me know if I'm missing anything important
28 replies
AEAsh Elixir
•Created by mcoll on 5/21/2025 in #support
AshOban job failures
@Zach Daniel https://github.com/ash-project/ash_oban/pull/159
28 replies
AEAsh Elixir
•Created by mcoll on 5/21/2025 in #support
AshOban job failures
of course of course 😄
28 replies
AEAsh Elixir
•Created by mcoll on 5/21/2025 in #support
AshOban job failures
(although ash_oban is at 0.4.6, which means that under semver you are allowed to make breaking changes in minor versions 🙃 )
28 replies
AEAsh Elixir
•Created by mcoll on 5/21/2025 in #support
AshOban job failures
maybe just
fail_jobs
?28 replies
AEAsh Elixir
•Created by mcoll on 5/21/2025 in #support
AshOban job failures
okay, so I can add a "fail_job_on_error" boolean, with default false
28 replies
AEAsh Elixir
•Created by mcoll on 5/21/2025 in #support
AshOban job failures
do we want to enable this behaviour all the time, or should we make it a configuration of the trigger?
28 replies
AEAsh Elixir
•Created by mcoll on 5/21/2025 in #support
AshOban job failures
okay, it seems to work, will clean it up and may send a PR later
28 replies
AEAsh Elixir
•Created by mcoll on 5/21/2025 in #support
AshOban job failures
okay, will try later tonight 🙂
28 replies
AEAsh Elixir
•Created by Jakub on 5/21/2025 in #support
How to use datetime_add in set_attribute?
yes, it may be interesting to explicitly mention in the docs, since it was a bit scary at first
19 replies
AEAsh Elixir
•Created by mcoll on 5/21/2025 in #support
AshOban job failures
Are you using Oban.Worker under the hood? Maybe
max_attempts
could be set such that that doesn't happen? Or that didn't work?28 replies
AEAsh Elixir
•Created by Jakub on 5/21/2025 in #support
How to use datetime_add in set_attribute?
I checked the logs and saw that transactions were happening, so I calmed down
19 replies
AEAsh Elixir
•Created by Jakub on 5/21/2025 in #support
How to use datetime_add in set_attribute?
require_atomic? false
was scaring me a bit at first, because I thought then changes may not be fully atomic and if something fails I had a partial state in the DB19 replies
AEAsh Elixir
•Created by Jakub on 5/21/2025 in #support
How to use datetime_add in set_attribute?
Makes sense, you can find out if you can do it in a single statement and just run that, but if needed you do a BEGIN/COMMIT
19 replies
AEAsh Elixir
•Created by mcoll on 5/21/2025 in #support
AshOban job failures
Since you are handling it yourselves
28 replies
AEAsh Elixir
•Created by mcoll on 5/21/2025 in #support
AshOban job failures
Ah, I see. Basically you want to bypass Oban retry system.
28 replies
AEAsh Elixir
•Created by Jakub on 5/21/2025 in #support
How to use datetime_add in set_attribute?
So this has been causing some dissonance in me a bit, so Ash atomic goes a bit beyond atomicity of changes in (say) postgres, and it is closely related to the idea of serializability, right?
An atomic change is one that can happen at the data layer, with the data layer ensuring that it is consistent.
Everything regardless of atomicity runs in a transaction (so it's using basic atomicity, as in, all changes will either succeed or fail, no intermediate steps), but by default (without Ash atomics) it's not serializable. Correct?
19 replies
AEAsh Elixir
•Created by mcoll on 5/19/2025 in #support
Ash.Type.Tuple Enumerable not implemented
for now at least I'm unblocked 🙂
107 replies
AEAsh Elixir
•Created by mcoll on 5/19/2025 in #support
Ash.Type.Tuple Enumerable not implemented
I don't have time right now to reduce the test even more, hopefully it's a good starting point for further exploration
107 replies
AEAsh Elixir
•Created by mcoll on 5/19/2025 in #support
Ash.Type.Tuple Enumerable not implemented
Im wondering if I should be calling a nested action like this or not, is this expected? Or should I be doing
Resource
|> Ash.Query.filter(id == ^record.id)
|> Ash.bulk_update!(:update, %{model: new_model})
like you say?
107 replies