Open ktrinh-tsgrp opened 5 years ago
Guessing we'd want to do something similar to how the BHUDI indexer has a job that cleans up files that are orphaned in the IndexerTemp
if a user starts the BU action but doesn't finish.
Question though - is the file left on the app server or in the repository? The indexer uses repository temp objects. If this is on the filesystem, could we gracefully clean it up in the code, or just use something like File#deleteOnExit
as a last resort?
If a user runs the merge videos actions and proceeds to not stay on the page, there will be a "final_collage" stray video file left behind because OCMS was unable to call the REST endpoint that create's a repository object that then cleans up this collage temporary file.
What should we do? Scheduled job?
Affected files: FFmpegVideoUtil.java