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
7d840e4b
Commit
7d840e4b
authored
Jul 06, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
83f9371a
162ef51f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
3 deletions
+9
-3
app/models/concerns/reactive_caching.rb
app/models/concerns/reactive_caching.rb
+1
-1
changelogs/unreleased/sh-disable-reactive-caching-automatic-retries.yml
...eleased/sh-disable-reactive-caching-automatic-retries.yml
+5
-0
spec/models/concerns/reactive_caching_spec.rb
spec/models/concerns/reactive_caching_spec.rb
+3
-2
No files found.
app/models/concerns/reactive_caching.rb
View file @
7d840e4b
...
...
@@ -178,7 +178,7 @@ module ReactiveCaching
def
enqueuing_update
(
*
args
)
yield
ensure
ReactiveCachingWorker
.
perform_in
(
self
.
class
.
reactive_cache_refresh_interval
,
self
.
class
,
id
,
*
args
)
end
end
...
...
changelogs/unreleased/sh-disable-reactive-caching-automatic-retries.yml
0 → 100644
View file @
7d840e4b
---
title
:
Prevent amplification of ReactiveCachingWorker jobs upon failures
merge_request
:
30432
author
:
type
:
performance
spec/models/concerns/reactive_caching_spec.rb
View file @
7d840e4b
...
...
@@ -206,8 +206,9 @@ describe ReactiveCaching, :use_clean_rails_memory_store_caching do
expect
(
read_reactive_cache
(
instance
)).
to
eq
(
"preexisting"
)
end
it
'enqueues a repeat worker'
do
expect_reactive_cache_update_queued
(
instance
)
it
'does not enqueue a repeat worker'
do
expect
(
ReactiveCachingWorker
)
.
not_to
receive
(
:perform_in
)
expect
{
go!
}.
to
raise_error
(
"foo"
)
end
...
...
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