Completa modulo Replay: S3, retention, sync YouTube e gestione società.
Streaming chunked da Garage, purge con delete YouTube, privacy sincronizzata, archivio club migliorato, retention 30/90 separata da stato abbonamento. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
17
backend/app/jobs/recordings/sync_youtube_privacy_job.rb
Normal file
17
backend/app/jobs/recordings/sync_youtube_privacy_job.rb
Normal file
@@ -0,0 +1,17 @@
|
||||
module Recordings
|
||||
class SyncYoutubePrivacyJob
|
||||
include Sidekiq::Job
|
||||
sidekiq_options retry: 2, queue: "default"
|
||||
|
||||
def perform(recording_id)
|
||||
recording = Recording.find_by(id: recording_id)
|
||||
return unless recording&.youtube_video_id.present?
|
||||
|
||||
Youtube::VideoLifecycleService.new(recording).update_privacy!(
|
||||
privacy_status: recording.privacy_status
|
||||
)
|
||||
rescue Youtube::VideoLifecycleService::Error => e
|
||||
Rails.logger.warn("[SyncYoutubePrivacyJob] #{recording_id}: #{e.message}")
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user