Comments (5)
You're correct, the Postgres notifier (and any Postgres Pub/Sub functionality) don't work with a database proxy.
Do other queries work with Oban.Repo
? It's a light wrapper around your app's Repo
that merely standardizes some options; I wouldn't expect Oban queries to differ.
Try the following query to check functionality:
import Ecto.Query
Oban.Repo.one(Oban.config(), last(Oban.Job))
Your stacktrace implies that connections are working, but the pool is overloaded. Has your average query time gone up from the proxy? Is your database pool large enough?
from oban.
@alvarezloaiciga Any update? If this isn't related to Oban, I'd love to close this issue out.
from oban.
@sorentwo sorry I got pulled into other things. Will run this tomorrow. One issue is that the app was crashing on start, after we added RDS Proxy.
from oban.
In lieu of more information, I'm closing this issue. We can reopen it in the future if there are more details!
from oban.
Hi @sorentwo we were able to fix this by adding ssl config in our DB connection. Found out that the error was:
[error] Postgrex.Protocol (#PID<0.1350.0>) failed to connect: ** (Postgrex.Error) FATAL 28000 (invalid_authorization_specification) This RDS Proxy requires TLS connections
To fix we just added this to the repo config:
ssl: true,
ssl_opts: [
versions: [:"tlsv1.2"]
],
from oban.
Related Issues (20)
- Oban bringing app down on Prod with error (expected :repo to implement Ecto.Repo, got: MyApp.Repo) HOT 2
- `MatchError` on a DB transaction in `Oban.Peers.Postgres` HOT 2
- allow phoenix_html 4.0 in oban_web HOT 1
- Selecting jobs in Oban Web UI throws exception HOT 8
- Behaviour check in config validation fails with non-standard Repo module HOT 3
- Introduce global timeouts for workflows HOT 2
- Queue allowlist/denylist support for Lifeline Plugin HOT 1
- Oban Pro v1.3.1 Workflows jobs not moving to executing state HOT 16
- Oban with postgres fails when elixir time_zone_database is set to Tzdata.TimeZoneDatabase HOT 1
- Oban.Pro.Workers.Batch not executing callbacks when there is only one job in the batch HOT 1
- Potentially bug in handling DB errors in `Oban.Peers.Postgres` HOT 2
- Seeing High CPU Usage with Oban Table Partitioned HOT 12
- Overriding Worker.new results in a compilation warning HOT 2
- Oban Pro: jobs get stuck in executing and become orphans HOT 20
- Structs cannot be passed to Job.new HOT 3
- Notifier logs after upgrading to 2.17.4 HOT 18
- Upgrading to Oban 2.17.4 from 2.17.3 fails compilation step with `no function clause matching in Ecto.Query.with_cte/3 ` HOT 1
- Oban 2.17.4 update MATERIALIZED syntax error HOT 3
- Oban Web is refreshing the page constantly HOT 1
- Unclear docs for `perform/1` callback in case of an unhandled exception, exit or throw HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oban.