nathanl
I’ve got some jobs that are “stuck”. Eg, one is scheduled 20 hours ago and is in available on attempt 0 of 15. It’s part of a workflow and has deps, but searching meta.workflow_id:0198ec97-ad63-783d-9c6b-12f1c6a15728 in all states finds only this stuck job in available.
The queue has config global_limit: [allowed: 1, partition: [fields: [:args], keys: [:regression_model_id]]], local_limit: 5. Yesterday I got some of these jobs to run by temporarily bumping that to 2, but that’s not very safe. This is on oban_pro 1.6.3, oban 2.20.1, oban_met 1.0.3, oban_web 2.11.4. For config we’ve got notifier: Oban.Notifiers.PG.
Any suggestions to debug?
Trending in Questions
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
Hi everyone,
I am toying with the idea of building a “match maker” for giving personal help to people that wants to start coding.
I sta...
New
Hello,
I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
Documentation
While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
So my question is quite simple and i have found no conclusive answer on forum, google or AI.
Should we use :erlang.float for Integer to ...
New
I recently noticed that Elixir’s Logger defaults its primary log level to :debug when no :logger, :level application configuration is pre...
New
I’m new to elixir and just tried to install the elixirLS extension for VScode(ium) and it is throwing some errors that I would like help ...
New
Other Trending Topics
Edit: 2026 May 15 - This post is archived.
Mob is alive!!
Main docs: mob v0.7.11 — Documentation
A bit of explanation for the slightly c...
New
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
Hi there! We created Gust: A task orchestrator inspired by Airflow.
For those who have never heard about Aiflow, it’s a Python-based wor...
New
Hi everyone!
The first release candidate for the Expert language server project is now available!
We’ve published a press release detai...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #ai
- #elixirconf-us
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #elixirconf-eu
- #metaprogramming
- #hex










Showing Posts 1 to 10- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
sorentwo
The Oban version looks good, but a fix in Pro v1.6.4 may help with the stuck processing.
The fact that there’s a job in a workflow with deps that is marked
availablemeans all the deps have alreadycompleted(orcancelled/discardeddepending on your config).adamtharani
I just ran into this, where jobs were queued yesterday and they sat in the queue untouched, the root problem looked like the
partition_keyon the job records werenil, not sure how it could get into this scenario, running Oban Pro 1.6.2sorentwo
Was this following an upgrade from v1.5, and if so, did you upgrade to v1.5.4 first to have it pre-generate the partition keys as suggested in the upgrade guide?
Is the situation resolved now?
adamtharani
No I had done the upgrade a while ago actually. I resolved it by turning off the global limit to allow it to process the jobs with no partition_key(wasn’t sure how else to get through it). I did have it happen locally too with one job, but I have yet to figure out what scenario triggered it.
adamtharani
Hey @sorentwo,
Had this happen again, currently have about 6k Jobs sitting in a queue with no partition key, would appreciate some guidance on how to debug this.
Running: Oban v2.20.1 Oban.Web v2.11.4 Oban.Met v1.0.3 Oban.Pro v1.6.5
Thanks
sorentwo
There was a change made in Pro v1.6.7 to address this specific issue. Will you upgrade and give that a shot?
adamtharani
Ahh I missed that, upgrading now. Will report back
adamtharani
@sorentwo actually before I upgrade, even new jobs added to the queue have a null
partition_key, is there anything I should debug before making any changes?sorentwo
Ah, that shouldn’t be happening then. Where are you inserting the jobs from? What does the oban config look like in that app?
adamtharani
So these records in particular are actually created via the AshOban extension
I just tried creating a new job in that queue without using the AshOban extension and it does has a
partition_key,coincidentally creating one via the
AshObanextension usingAshOban.run_triggers(record, trigger)now has a partition_keySo it seems like it’s working now and I’ll try the upgrade, but wondering why it would even get into this scenario?Actually that only worked from one instance