mirror of
https://github.com/neocities/neocities.git
synced 2025-08-06 09:34:57 +02:00
patch a few missing tests, deprecate server model, fix a few bugs
This commit is contained in:
parent
86990f3535
commit
50c1f67bdf
14 changed files with 90 additions and 49 deletions
|
@ -2,7 +2,9 @@ class PurgeCacheWorker
|
|||
include Sidekiq::Worker
|
||||
sidekiq_options queue: :purgecache, retry: 10, backtrace: true
|
||||
|
||||
|
||||
def perform(payload)
|
||||
# :nocov:
|
||||
attempt = 0
|
||||
begin
|
||||
attempt += 1
|
||||
|
@ -15,5 +17,6 @@ class PurgeCacheWorker
|
|||
sleep 1
|
||||
retry
|
||||
end
|
||||
# :nocov:
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue