Move scrobble refresh infra to Oban

This commit is contained in:
Claudio Ortolina
2026-03-28 08:59:51 +00:00
parent d45aff21ec
commit 5c5a523fe6
9 changed files with 52 additions and 118 deletions
-3
View File
@@ -24,9 +24,6 @@ defmodule MusicLibrary.Application do
repos: Application.fetch_env!(:music_library, :ecto_repos), skip: skip_migrations?()},
{Task.Supervisor, name: MusicLibrary.TaskSupervisor},
{Phoenix.PubSub, name: MusicLibrary.PubSub},
{MusicLibrary.ListeningStats.Refresh,
{LastFm.Config.resolve(:music_library),
Application.fetch_env!(:music_library, MusicLibrary.ListeningStats.Refresh)}},
# Start a worker by calling: MusicLibrary.Worker.start_link(arg)
# {MusicLibrary.Worker, arg},
# Start to serve requests, typically the last entry