Commit a6369d04 authored by Stan Hu's avatar Stan Hu

Merge branch '228580-follow-up-from-fix-deprecated-deliveryjob-message' into 'master'

Follow-up from "Fix deprecated DeliveryJob message

Closes #228580

See merge request gitlab-org/gitlab!40736
parents d991c4b1 a4aaa9c8
......@@ -28,7 +28,7 @@ module Gitlab
# We are using 'Marginalia::SidekiqInstrumentation' which does not support 'ActiveJob::Base'.
# Gitlab also uses 'ActionMailer::MailDeliveryJob' which inherits from ActiveJob::Base.
# So below condition is used to return metadata for such jobs.
if job.is_a?(ActionMailer::MailDeliveryJob) || job.is_a?(ActionMailer::DeliveryJob)
if job.is_a?(ActionMailer::MailDeliveryJob)
{
"class" => job.arguments.first,
"jid" => job.job_id
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment