summaryrefslogtreecommitdiff
path: root/app/workers/users
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-07-21 12:09:35 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2021-07-21 12:09:35 +0000
commit7e5b78ee035a9cb43c65c029e4305ff7357b07d2 (patch)
treeb6d57d9674d97eb1fa22110a855b32682de22ef3 /app/workers/users
parentea53c9c3c316a6eeb33da670e1e5bcbc39c6c79c (diff)
downloadgitlab-ce-7e5b78ee035a9cb43c65c029e4305ff7357b07d2.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/workers/users')
-rw-r--r--app/workers/users/create_statistics_worker.rb2
-rw-r--r--app/workers/users/deactivate_dormant_users_worker.rb2
2 files changed, 4 insertions, 0 deletions
diff --git a/app/workers/users/create_statistics_worker.rb b/app/workers/users/create_statistics_worker.rb
index e44039f2016..5c35cda93a3 100644
--- a/app/workers/users/create_statistics_worker.rb
+++ b/app/workers/users/create_statistics_worker.rb
@@ -4,6 +4,8 @@ module Users
class CreateStatisticsWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker
+ data_consistency :always
+
sidekiq_options retry: 3
# rubocop:disable Scalability/CronWorkerContext
# This worker does not perform work scoped to a context
diff --git a/app/workers/users/deactivate_dormant_users_worker.rb b/app/workers/users/deactivate_dormant_users_worker.rb
index e583823312f..bcb13483379 100644
--- a/app/workers/users/deactivate_dormant_users_worker.rb
+++ b/app/workers/users/deactivate_dormant_users_worker.rb
@@ -4,6 +4,8 @@ module Users
class DeactivateDormantUsersWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker
+ data_consistency :always
+
include CronjobQueue
feature_category :utilization