diff --git a/internal/pkg/object/command/clickhouse/clickhouse.go b/internal/pkg/object/command/clickhouse/clickhouse.go index 5581667..91d5085 100644 --- a/internal/pkg/object/command/clickhouse/clickhouse.go +++ b/internal/pkg/object/command/clickhouse/clickhouse.go @@ -3,6 +3,7 @@ package clickhouse import ( "context" "fmt" + "time" "github.com/ClickHouse/clickhouse-go/v2" "github.com/ClickHouse/clickhouse-go/v2/lib/driver" @@ -107,6 +108,7 @@ func (cmd *commandContext) createJobContext(ctx context.Context, j *job.Job, c * Username: cmd.Username, Password: cmd.Password, }, + ReadTimeout: time.Hour, }) if err != nil { createExcMethod.CountError("open_connection")