Skip to content

Commit

Permalink
DatabaseBackupReplicationJob : ajuste timeout upload (#3530)
Browse files Browse the repository at this point in the history
* DatabaseBackupReplicationJob : ajuste timeout upload

* Set timeout at 90s
  • Loading branch information
AntoineAugusti authored Oct 13, 2023
1 parent a37ef36 commit 628c191
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/transport/lib/jobs/database_backup_replication_job.ex
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ defmodule Transport.Jobs.DatabaseBackupReplicationJob do

tmp_path
|> ExAws.S3.Upload.stream_file()
|> ExAws.S3.upload(bucket_name(:destination), upload_filename(dump))
|> ExAws.S3.upload(bucket_name(:destination), upload_filename(dump), timeout: :timer.seconds(90))
|> request!(:destination)
after
File.rm(tmp_path)
Expand Down

0 comments on commit 628c191

Please sign in to comment.