Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mastodon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pierre Boudes
mastodon
Commits
38b69512
Unverified
Commit
38b69512
authored
May 9, 2020
by
Eugen Rochko
Committed by
GitHub
May 9, 2020
Browse files
Options
Downloads
Patches
Plain Diff
Fix old unique jobs digests not having been cleaned up (#13683)
parent
66fa9f0a
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
db/migrate/20200508212852_reset_unique_jobs_locks.rb
+12
-0
12 additions, 0 deletions
db/migrate/20200508212852_reset_unique_jobs_locks.rb
db/schema.rb
+1
-1
1 addition, 1 deletion
db/schema.rb
with
13 additions
and
1 deletion
db/migrate/20200508212852_reset_unique_jobs_locks.rb
0 → 100644
+
12
−
0
View file @
38b69512
class
ResetUniqueJobsLocks
<
ActiveRecord
::
Migration
[
5.2
]
disable_ddl_transaction!
def
up
# We do this to clean up unique job digests that were not properly
# disposed of prior to https://github.com/tootsuite/mastodon/pull/13361
SidekiqUniqueJobs
::
Digests
.
delete_by_pattern
(
'*'
,
count:
SidekiqUniqueJobs
::
Digests
.
count
)
end
def
down
;
end
end
This diff is collapsed.
Click to expand it.
db/schema.rb
+
1
−
1
View file @
38b69512
...
...
@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
version:
2020_0
4_17_125749
)
do
ActiveRecord
::
Schema
.
define
(
version:
2020_0
5_08_212852
)
do
# These are extensions that must be enabled in order to support this database
enable_extension
"plpgsql"
...
...
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
sign in
to comment