Try and respect the 1sec discogs rate limit
This commit is contained in:
@@ -5,7 +5,7 @@ defmodule MusicLibrary.Worker.ArtistRefreshDiscogsData do
|
|||||||
def perform(%Oban.Job{args: %{"id" => artist_info_id}}) do
|
def perform(%Oban.Job{args: %{"id" => artist_info_id}}) do
|
||||||
result = MusicLibrary.Artists.refresh_discogs_data(artist_info_id)
|
result = MusicLibrary.Artists.refresh_discogs_data(artist_info_id)
|
||||||
|
|
||||||
Process.sleep(500)
|
Process.sleep(1_000)
|
||||||
|
|
||||||
result
|
result
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user