Elimina i path MediaMTX orfani dopo ogni diretta.
Corregge il cleanup dei path live/match_{uuid}, rimuove sempre il path a fine sessione e lo esegue ogni ora via cron.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -5,9 +5,11 @@ module Recordings
|
||||
|
||||
def perform
|
||||
result = Recordings::CleanupLocal.new.call
|
||||
orphan = Mediamtx::CleanupOrphanPaths.new.call
|
||||
Rails.logger.info(
|
||||
"[Recordings::CleanupLocalJob] removed=#{result.removed} " \
|
||||
"freed=#{result.freed_bytes} skipped=#{result.skipped}"
|
||||
"freed=#{result.freed_bytes} skipped=#{result.skipped} " \
|
||||
"orphan_paths=#{orphan.removed}"
|
||||
)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user