since ugoira converter always uses the md5 file path as the base, no longer have to delay unlinking the tempfile
This commit is contained in:
@@ -139,13 +139,7 @@ class Upload < ActiveRecord::Base
|
|||||||
update_attributes(:status => "error: #{x.class} - #{x.message}", :backtrace => x.backtrace.join("\n"))
|
update_attributes(:status => "error: #{x.class} - #{x.message}", :backtrace => x.backtrace.join("\n"))
|
||||||
|
|
||||||
ensure
|
ensure
|
||||||
if async_conversion?
|
delete_temp_file
|
||||||
# need to delay this because we have to process the file
|
|
||||||
# before deleting it
|
|
||||||
delay(:queue => Socket.gethostname).delete_temp_file(temp_file_path)
|
|
||||||
else
|
|
||||||
delete_temp_file
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def async_conversion?
|
def async_conversion?
|
||||||
|
|||||||
Reference in New Issue
Block a user