Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
4 deletions
+0
-4
app/workers/schedule_update_user_activity_worker.rb
app/workers/schedule_update_user_activity_worker.rb
+0
-2
app/workers/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
...
@@ -3,8 +3,6 @@ class ScheduleUpdateUserActivityWorker
include
CronjobQueue
include
CronjobQueue
def
perform
(
batch_size
=
500
)
def
perform
(
batch_size
=
500
)
return
if
Gitlab
::
Geo
.
secondary?
Gitlab
::
UserActivities
.
new
.
each_slice
(
batch_size
)
do
|
batch
|
Gitlab
::
UserActivities
.
new
.
each_slice
(
batch_size
)
do
|
batch
|
UpdateUserActivityWorker
.
perform_async
(
Hash
[
batch
])
UpdateUserActivityWorker
.
perform_async
(
Hash
[
batch
])
end
end
...
...
app/workers/update_user_activity_worker.rb
View file @
b5d9d9e8
...
@@ -3,8 +3,6 @@ class UpdateUserActivityWorker
...
@@ -3,8 +3,6 @@ class UpdateUserActivityWorker
include
DedicatedSidekiqQueue
include
DedicatedSidekiqQueue
def
perform
(
pairs
)
def
perform
(
pairs
)
return
if
Gitlab
::
Geo
.
secondary?
pairs
=
cast_data
(
pairs
)
pairs
=
cast_data
(
pairs
)
ids
=
pairs
.
keys
ids
=
pairs
.
keys
conditions
=
'WHEN id = ? THEN ? '
*
ids
.
length
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