Commit 3a8360f0 authored by Alex Buijs's avatar Alex Buijs

Fix wrong usage of current_context_include?

parent 2ba1fa8c
...@@ -15,7 +15,7 @@ module CronjobQueue ...@@ -15,7 +15,7 @@ module CronjobQueue
# Cronjobs never get scheduled with arguments, so this is safe to # Cronjobs never get scheduled with arguments, so this is safe to
# override # override
def context_for_arguments(_args) def context_for_arguments(_args)
return if Gitlab::ApplicationContext.current_context_include?('meta.caller_id') return if Gitlab::ApplicationContext.current_context_include?(:caller_id)
Gitlab::ApplicationContext.new(caller_id: "Cronjob") Gitlab::ApplicationContext.new(caller_id: "Cronjob")
end end
......
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