diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-01 18:07:45 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-01 18:07:45 +0300 |
commit | 1219a9dce91f4edbc135dfc08299b4122b4825a8 (patch) | |
tree | e7d12a55d75a2d56e60d9527bef3724e3578866d /app/services/members | |
parent | 1a0d6dbdc2ac3047f4953a359ef27ba6e26074ae (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/services/members')
-rw-r--r-- | app/services/members/update_highest_role_service.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/services/members/update_highest_role_service.rb b/app/services/members/update_highest_role_service.rb index ce1707c13ec..5ebd2e03df1 100644 --- a/app/services/members/update_highest_role_service.rb +++ b/app/services/members/update_highest_role_service.rb @@ -4,7 +4,8 @@ module Members class UpdateHighestRoleService < ::BaseService include ExclusiveLeaseGuard - LEASE_TIMEOUT = 30.minutes.to_i + LEASE_TIMEOUT = 10.minutes.to_i + DELAY = 10.minutes attr_reader :user_id @@ -14,7 +15,7 @@ module Members def execute try_obtain_lease do - UpdateHighestRoleWorker.perform_async(user_id) + UpdateHighestRoleWorker.perform_in(DELAY, user_id) end end |