This repository has been archived on 2024-07-31. You can view files and clone it, but cannot push or open issues or pull requests.
2023-07-12 03:47:08 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2020-05-09 12:37:39 -04:00
|
|
|
class ResetUniqueJobsLocks < ActiveRecord::Migration[5.2]
|
|
|
|
disable_ddl_transaction!
|
|
|
|
|
|
|
|
def up
|
|
|
|
# We do this to clean up unique job digests that were not properly
|
2021-07-13 09:46:20 -04:00
|
|
|
# disposed of prior to https://github.com/mastodon/mastodon/pull/13361
|
2020-05-09 12:37:39 -04:00
|
|
|
|
2021-03-11 23:39:58 -05:00
|
|
|
until SidekiqUniqueJobs::Digests.new.delete_by_pattern('*').nil?; end
|
2020-05-09 12:37:39 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
def down; end
|
|
|
|
end
|