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
8df452d3
Commit
8df452d3
authored
Sep 03, 2020
by
Alex Kalderimis
Committed by
Alex Kalderimis
Sep 04, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply 1 suggestion(s) to 1 file(s)
parent
259c7bb1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
app/workers/issue_placement_worker.rb
app/workers/issue_placement_worker.rb
+2
-0
No files found.
app/workers/issue_placement_worker.rb
View file @
8df452d3
...
...
@@ -13,6 +13,8 @@ class IssuePlacementWorker
def
perform
(
issue_id
,
placement
=
:end
)
issue
=
Issue
.
find
(
issue_id
)
# here we are placing not just this issue, but it and all issues created since, and up to five-minutes before.
# This is to deal with out-of-order execution of the worker, while preserving creation order.
to_place
=
Issue
.
relative_positioning_query_base
(
issue
)
.
where
(
Issue
.
arel_table
[
:created_at
].
gteq
(
issue
.
created_at
-
5
.
minutes
))
...
...
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