AshOban scheduled action crashing Oban.Plugins.Cron
We have something like this:
It looks like that
:create_nightly_global_batch_request is crashing Oban.Plugins.Cron at midnight, though. (Log too large, will add as a comment)
It seems to have started after we upgraded from ash_oban 0.4.12 to 0.5.1 and Elixir from 1.18.4 OTP 27 to 1.19.2 OTP 28 (among other things).
Any ideas? Thanks!5 Replies
Error log copied from cloudwatch json logs, so formatting could be a slightly messed up.
After a bit more research, this specifically seemed to happen first the night after we upgraded from elixir 1.18.4 otp 27 to elixir 1.19.2 otp 28.1.1.
Not sure if it's an elixir 1.19 thing or an otp 28 thing, though. (Or actually totally unrelated? lol)
And a bit more information - that happens to be the
oban block we had to add domain to for it to compile under Elixir 1.19. Removing it gets this error:
Okay, I've found a few interesting things.
* the presence of that scheduled_actions block is what requires domain to be present - if I remove scheduled_actions I can also remove domain and compile without errors
* the queue for that that schedule was being set to nil instead of auto-generated, if I manually set the queue I'm hoping this will fix my issues
These seem to be Elixir 1.19 issues, as far as I can tell 1.18 works fine. Best guess is the async compiler changes?
Oh, this also looks reproducible with the current ash_oban tests using Elixir 1.19.2 and OTP 28. :)strange, please open an issue, will look into it. It is likely some kind of missing
Code.ensure_compiled due to changes in 1.19yeah, that's my guess too. ran into one of those in our codebase
will plan on making a ticket tomorrow
I pushed something to
main to try