Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Register
Sign in
Toggle navigation
Menu
Open sidebar
Tiger Ton
mastodon
Commits
31e7940d
Unverified
Commit
31e7940d
authored
6 years ago
by
Eugen Rochko
Committed by
GitHub
6 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Fix multiple workers for the same scheduled status being queueable (#9875)
parent
6b91da97
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/workers/publish_scheduled_status_worker.rb
+2
-0
app/workers/publish_scheduled_status_worker.rb
with
2 additions
and
0 deletions
+2
-0
app/workers/publish_scheduled_status_worker.rb
+
2
-
0
View file @
31e7940d
...
...
@@ -3,6 +3,8 @@
class
PublishScheduledStatusWorker
include
Sidekiq
::
Worker
sidekiq_options
unique: :until_executed
def
perform
(
scheduled_status_id
)
scheduled_status
=
ScheduledStatus
.
find
(
scheduled_status_id
)
scheduled_status
.
destroy!
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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
Menu
Explore
Projects
Groups
Snippets