tegmentum

tegmentum

Hey all, I just installed {:oban_web, "~> 2.10", repo: "oban"}, and authenticated with the license key.

I enabled helpers

  def router do
    quote do
      use Phoenix.Router, helpers: true

Configured my router

defmodule MyAppWeb.Router do
  use MyAppWeb, :router

  import MyAppWeb.UserAuth
  import Oban.Web.Router

  scope "/", MyAppWeb do
    pipe_through [:browser, :require_authenticated_user]

    oban_dashboard("/oban")

I can access the dashboard after signing in, The dashboard is also displaying available jobs, and everything.

There is a bug though where clicking on some tabs (that change the url) to navigate between views makes the app throw the following error:

function Oban.Web.DashboardLive.handle_event/3 is undefined or private

(oban_web 2.10.2) Oban.Web.DashboardLive.handle_event("pause-refresh", %{}, #Phoenix.LiveView.Socket<id: "phx-F8RNLeOZ-5AkhAjF", endpoint: PdexWeb.Endpoint, view: Oban.Web.DashboardLive, parent_pid: nil, root_pid: #PID<0.1349.0>, router: PdexWeb.Router, assigns: %{access: :all, nodes: [%{count: 0, name: "Systems-MBP-5", limit: 80}], user: nil, timer: #Reference<0.198486644.1920991236.194615>, selected: MapSet.new([]), init_state: %{"oban:chart-group" => "state", "oban:chart-series" => "exec_count"}, states: [%{count: 0, name: "executing"}, %{count: 0, name: "available"}, %{count: 0, name: "scheduled"}, %{count: 900, name: "retryable"}, %{count: 0, name: "cancelled"}, %{count: 0, name: "discarded"}, %{count: 0, name: "completed"}], conf: %Oban.Config{dispatch_cooldown: 5, engine: Oban.Engines.Basic, get_dynamic_repo: nil, insert_trigger: true, log: false, name: Oban, node: "Systems-MBP-5", notifier: {Oban.Notifiers.Postgres, []}, peer: {Oban.Peers.Postgres, []}, plugins: [{Oban.Plugins.Pruner, [max_age: 345600]}], prefix: "public", queues: [default: [limit: 10], order_requests: [limit: 10], customer_import: [limit: 10], xentral_orders: [limit: 10], image_migration: [limit: 10], product_import: [limit: 10], collection_import: [limit: 10], bundle_import: [limit: 10]], repo: Pdex.Repo, shutdown_grace_period: 15000, stage_interval: 1000, testing: :disabled}, resolver: Oban.Web.Resolver, params: %{state: "retryable", limit: 20, sort_by: "time", sort_dir: "asc"}, os_time: 1712578637, queues: [%{name: "bundle_import", limit: 10, avail: 0, execu: 0, global?: false, paused?: false, rate_limited?: false}, %{name: "collection_import", limit: 10, avail: 0, execu: 0, global?: false, paused?: false, rate_limited?: false}, %{name: "customer_import", limit: 10, avail: 0, execu: 0, global?: false, paused?: false, rate_limited?: false}, %{name: "default", limit: 10, avail: 0, execu: 0, global?: false, paused?: false, rate_limited?: false}, %{name: "image_migration", limit: 10, avail: 0, execu: 0, global?: false, paused?: false, rate_limited?: false}, %{name: "order_requests", limit: 10, avail: 0, execu: 0, global?: false, paused?: false, rate_limited?: false}, %{name: "product_import", limit: 10, avail: 0, execu: 0, global?: false, paused?: false, rate_limited?: false}, %{name: "xentral_orders", limit: 10, avail: 0, execu: 0, global?: false, paused?: false, rate_limited?: false}]

There is also an error thrown for the “resume-refresh” message.

Which essentially breaks the navigation.

Any help would be much appreciated. Thanks!

Showing Posts 1 to 2

sorentwo

sorentwo

Oban Core Team

That’s from an incompatibility with an older version of LiveView. Upgrade to a newer version and that error will go away.

tegmentum

tegmentum OP

Thanks! for whoever needs this, it works with {:phoenix_live_view, "~> 0.20.12"}

— All posts loaded —

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
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
RemyXRenard
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
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
brecabral
Documentation While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
samoloth
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
FlyingNoodle
If a change or preparation module uses Ash.Changeset.get_argument/2 or Ash.Query.get_argument/2 (or any of the other get_argument functio...
New

Other Trending Topics Top

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
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Dmk
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
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
webofbits
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself. My main conc...
#ai
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews