nathanl

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?

Showing Posts 1 to 10

sorentwo

sorentwo

Oban Core Team

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 available means all the deps have already completed (or cancelled/discarded depending on your config).

adamtharani

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_key on the job records were nil, not sure how it could get into this scenario, running Oban Pro 1.6.2

sorentwo

sorentwo

Oban Core Team

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

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

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

sorentwo

Oban Core Team

There was a change made in Pro v1.6.7 to address this specific issue. Will you upgrade and give that a shot?

adamtharani

adamtharani

Ahh I missed that, upgrading now. Will report back

adamtharani

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

sorentwo

Oban Core Team

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

adamtharani

So these records in particular are actually created via the AshOban extension :thinking:

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 AshOban extension using AshOban.run_triggers(record, trigger) now has a partition_key :thinking:

So 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

Where Next? Top

Trending in Questions Top

RSP87
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
kpanic
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
nseaSeb
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
brecabral
Documentation While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
velrest
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
asweet-confluent
I recently noticed that Elixir’s Logger defaults its primary log level to :debug when no :logger, :level application configuration is pre...
New
apz
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 Top

GenericJam
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
JesseHerrick
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
mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
marciok
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
mhanberg
Hi everyone! The first release candidate for the Expert language server project is now available! We’ve published a press release detai...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews