mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-05 07:03:51 +08:00
11 lines
291 B
Ruby
11 lines
291 B
Ruby
class ClearDiscardedRepositoriesJob
|
|
class << self
|
|
def perform_later
|
|
Repository.with_discarded.discarded.destroy_all
|
|
end
|
|
|
|
handle_asynchronously :perform_later,
|
|
queue: :clear_discarded_repositories,
|
|
priority: 20
|
|
end
|
|
end
|