BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
b5d9d9e8
Commit
b5d9d9e8
authored
Apr 12, 2017
by
Sean McGivern
Committed by
Rémy Coutable
Apr 14, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove Geo references
parent
73a8caf1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
4 deletions
+0
-4
schedule_update_user_activity_worker.rb
app/workers/schedule_update_user_activity_worker.rb
+0
-2
update_user_activity_worker.rb
app/workers/update_user_activity_worker.rb
+0
-2
No files found.
app/workers/schedule_update_user_activity_worker.rb
View file @
b5d9d9e8
...
...
@@ -3,8 +3,6 @@ class ScheduleUpdateUserActivityWorker
include
CronjobQueue
def
perform
(
batch_size
=
500
)
return
if
Gitlab
::
Geo
.
secondary?
Gitlab
::
UserActivities
.
new
.
each_slice
(
batch_size
)
do
|
batch
|
UpdateUserActivityWorker
.
perform_async
(
Hash
[
batch
])
end
...
...
app/workers/update_user_activity_worker.rb
View file @
b5d9d9e8
...
...
@@ -3,8 +3,6 @@ class UpdateUserActivityWorker
include
DedicatedSidekiqQueue
def
perform
(
pairs
)
return
if
Gitlab
::
Geo
.
secondary?
pairs
=
cast_data
(
pairs
)
ids
=
pairs
.
keys
conditions
=
'WHEN id = ? THEN ? '
*
ids
.
length
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment