diff options
Diffstat (limited to 'app/workers/authorized_project_update/project_recalculate_worker.rb')
-rw-r--r-- | app/workers/authorized_project_update/project_recalculate_worker.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/workers/authorized_project_update/project_recalculate_worker.rb b/app/workers/authorized_project_update/project_recalculate_worker.rb index 4d350d95e7e..3d073f18622 100644 --- a/app/workers/authorized_project_update/project_recalculate_worker.rb +++ b/app/workers/authorized_project_update/project_recalculate_worker.rb @@ -26,7 +26,9 @@ module AuthorizedProjectUpdate private def lock_key(project) - "#{self.class.name.underscore}/projects/#{project.id}" + # The self.class.name.underscore value is hardcoded here as the prefix, so that the same + # lock_key for this superclass will be used by the ProjectRecalculatePerUserWorker subclass. + "authorized_project_update/project_recalculate_worker/projects/#{project.id}" end end end |