Missing oban: true
Repo opts in some queries?
#1142
Labels
area:pro
Related to Oban Pro
closed:duplicate
This is a duplicate issue
kind:bug
Something isn't working
Environment
Current Behavior
I'm unsure if this may be an oversight or if it's expected behaviour.
The Producer queries in
Oban.Pro.Engines.Smart.refresh/2
does not seem to pass[oban: true]
in the Repo query opts.Is this by design? I'm not sure if
oban: true
is used only in certain queries or if it should apply to all queries.Expected Behavior
I use this information in our
Repo.prepare_query/3
to process Oban queries differently. Something like this: https://hexdocs.pm/ecto/multi-tenancy-with-foreign-keys.htmlChecking
opts[:oban]
was fine until this upgrade. After upgrading to 2.15.0-rc.1, it seems exceptions are now being raised in our code base when handlingoban_producers
queries. I added a workaround to process alloban_*
tables differently and it's running smoothly now.The Producer queries in
Oban.Pro.Engines.Smart.refresh/2
setsoban
in Repo query opts totrue
so the user can use this information to identify Oban queries inRepo.prepare_query/3
.The text was updated successfully, but these errors were encountered: