fix: Disable enqueueing Avatar jobs if the URL is invalid (#12035)

- Add a new queue purgable
- Disable enqueuing the job if URL is invalid
This commit is contained in:
Pranav
2025-07-24 12:56:39 +04:00
committed by GitHub
parent 2a5ecf84a1
commit 9acb0d86b5
7 changed files with 21 additions and 6 deletions

View File

@@ -7,7 +7,7 @@ RSpec.describe Avatar::AvatarFromGravatarJob do
it 'enqueues the job' do
expect { described_class.perform_later(avatarable, email) }.to have_enqueued_job(described_class)
.on_queue('low')
.on_queue('purgable')
end
it 'will call AvatarFromUrlJob with gravatar url' do

View File

@@ -6,7 +6,7 @@ RSpec.describe Avatar::AvatarFromUrlJob do
it 'enqueues the job' do
expect { described_class.perform_later(avatarable, avatar_url) }.to have_enqueued_job(described_class)
.on_queue('low')
.on_queue('purgable')
end
it 'will attach avatar from url' do