mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-06 23:48:03 +08:00
12 lines
291 B
Ruby
12 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
|