Ensure we re-enable rake tasks after invokation in job

https://community.openproject.org/wp/44182
fix/re-enable-rake-task
Oliver Günther 2 years ago
parent 17183c8e02
commit 6e876df473
No known key found for this signature in database
GPG Key ID: A3A8BDAD7C0C552C
  1. 2
      app/workers/rake_job.rb

@ -46,6 +46,8 @@ module RakeJob
def invoke
load_tasks!
task.invoke *args
ensure
task&.reenable
end
##

Loading…
Cancel
Save