GitHunt
SW

swelham/oban_insert_all_unique_timeout_example

ObanInsertAllUnique

Before following the setups below, be sure to install deps and run migrations.

To reproduce the timeout, open the application with iex.

iex -S mix phx.server

Next, run the function that enqueues the jobs.

iex> ObanInsertAllUnique.QueueJobs.enqueue()

Once this has run for a while, you will see the following error.

[error] Postgrex.Protocol (#PID<0.375.0>) disconnected: ** (DBConnection.ConnectionError) client #PID<0.538.0> timed out because it queued and checked out the connection for longer than 15000ms

Languages

Elixir72.5%CSS20.2%HTML4.6%JavaScript2.7%

Contributors

Created November 2, 2022
Updated November 2, 2022
swelham/oban_insert_all_unique_timeout_example | GitHunt