While implementing ActiveStorage at work we found out that when uploading big file, 12GB , the operations hangs for about 10 minutes and the I get the error Google::Execution::Expired
or sometimes HTTPClient::SendTimeoutError: execution expired
.
I am running most uploads with a line like this:
backup.file.attach(io: File.open("/my/file/path.ext"), filename: "myfilename")
Is there a way to make the request to last longer or a way to circunvent this timeouts.
This strategy has worked fine, so far, for uploads of 4GB. It's just when I go overboard with the file size that this occurs. Time is not a problem on our side since this is a nightly task on a Cron job.