Skip to content

Commit 72a02ad

Browse files
FIX (backups): Increase timeout from 1 hour to 23 hours
1 parent 5017f38 commit 72a02ad

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

backend/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ swagger/swagger.json
1111
swagger/swagger.yaml
1212
postgresus-backend.exe
1313
ui/build/*
14-
pgdata-for-restore/
14+
pgdata-for-restore/
15+
temp/

backend/internal/features/backups/backups/usecases/postgresql/create_backup_uc.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@ func (uc *CreatePostgresqlBackupUsecase) streamToStorage(
100100
) error {
101101
uc.logger.Info("Streaming PostgreSQL backup to storage", "pgBin", pgBin, "args", args)
102102

103-
ctx, cancel := context.WithTimeout(context.Background(), 60*time.Minute)
103+
// if backup not fit into 23 hours, Postgresus
104+
// seems not to work for such database size
105+
ctx, cancel := context.WithTimeout(context.Background(), 23*time.Hour)
104106
defer cancel()
105107

106108
// Monitor for shutdown and cancel context if needed

0 commit comments

Comments
 (0)