Refresh all data at the beginning of the month
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
defmodule MusicLibrary.Worker.ArtistRefreshAllDiscogsData do
|
||||
use Oban.Worker, queue: :discogs, max_attempts: 3
|
||||
|
||||
alias MusicLibrary.Artists
|
||||
|
||||
@impl Oban.Worker
|
||||
def perform(%Oban.Job{}) do
|
||||
Artists.Batch.refresh_discogs_data()
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,10 @@
|
||||
defmodule MusicLibrary.Worker.ArtistRefreshAllMusicBrainzData do
|
||||
use Oban.Worker, queue: :music_brainz, max_attempts: 3
|
||||
|
||||
alias MusicLibrary.Artists
|
||||
|
||||
@impl Oban.Worker
|
||||
def perform(%Oban.Job{}) do
|
||||
Artists.Batch.refresh_musicbrainz_data()
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,10 @@
|
||||
defmodule MusicLibrary.Worker.ArtistRefreshAllWikipediaData do
|
||||
use Oban.Worker, queue: :wikipedia, max_attempts: 3
|
||||
|
||||
alias MusicLibrary.Artists
|
||||
|
||||
@impl Oban.Worker
|
||||
def perform(%Oban.Job{}) do
|
||||
Artists.Batch.refresh_wikipedia_data()
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,10 @@
|
||||
defmodule MusicLibrary.Worker.RecordGenerateAllEmbeddings do
|
||||
use Oban.Worker, queue: :heavy_writes, max_attempts: 3
|
||||
|
||||
alias MusicLibrary.Records
|
||||
|
||||
@impl Oban.Worker
|
||||
def perform(%Oban.Job{}) do
|
||||
Records.Batch.generate_embeddings()
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user