houayang
I am trying to test oban job retries locally, my perform job returns {:error, %{}, and I see the job is in a retryable state, but it never runs and attempts is still 1.
oban: “~> 2.15.0”
oban_pro: “~> 0.14”
oban_web: “~> 2.6”
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
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
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
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
- #elixirconf-us
- #ai
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #elixirconf-eu
- #metaprogramming
- #hex











Showing Posts 11 to 20- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
houayang
job is scheduled for: 2024-08-06 15:38:48.665877
The 1
stage_jobwe are seeing here is a different job. We send 2 emails and each one goes to a different location. 1 of those email destinations, I am usingschedule_inor failing on purpose, and that is the one that never runs or retries.After the first email job is completed, the stage_job command returns an empty list:
sorentwo
What’s the
attemptandmax_attemptsfor that job?houayang
attempt is 0 and max is 3
sorentwo
Nothing appears to be wrong and I don’t see any reason why a scheduled job wouldn’t be ran. Staging is clearly working, as demonstrated by the stage call.
Will you run through this set of queries and see if it matches what you expect?
houayang
sorentwo
So there are 34 scheduled jobs that are ready to go? If you run
stage_jobsas you did earlier, does it stage any of them?That’s approximately the same query that
stage_jobsuses, so I wouldn’t expect any difference.houayang
looks like it
doomspork
@houayang did you find a resolution to this issue? I’ve found myself dealing with a similar issue. Following this thread and trying things as prescribed gets me similar results.
If I use
Oban.Engine.stage_jobs(Oban.config(), Oban.Job, limit: 5000)directly the jobs are staged but otherwise they hang out.sorentwo
Which version of Oban and what notifier are you using? Newer versions will emit a warning in the logger when nodes aren’t connected, and should fall back to a local polling mechanism.
doomspork
Howdy @sorentwo
Thanks for the super fast response! 
Oban 2.18.3 and
Oban.Notifiers.Postgres.This is local development. It’s a very basic Oban config