mirror of https://github.com/databricks/cli.git
[DECO-531] Increase timeout for file import api calls (#223)
This PR increases the client side timeout for upload API calls to 10 minutes to give sync enough time to import larger files
This commit is contained in:
parent
9d3a0da073
commit
2615d66945
|
@ -51,7 +51,9 @@ func (r *RepoFiles) readLocal(relativePath string) ([]byte, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *RepoFiles) writeRemote(ctx context.Context, relativePath string, content []byte) error {
|
func (r *RepoFiles) writeRemote(ctx context.Context, relativePath string, content []byte) error {
|
||||||
apiClient, err := client.New(r.workspaceClient.Config)
|
apiClientConfig := r.workspaceClient.Config
|
||||||
|
apiClientConfig.HTTPTimeoutSeconds = 600
|
||||||
|
apiClient, err := client.New(apiClientConfig)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue