Skip to content

Commit

Permalink
parallelism
Browse files Browse the repository at this point in the history
  • Loading branch information
ItamarYuran committed Oct 13, 2024
1 parent 5185d14 commit 41993e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
6 changes: 0 additions & 6 deletions cmd/lakectl/cmd/fs_upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@ package cmd

import (
"context"
"fmt"
"os"
"os/signal"
"path/filepath"
"strings"
"time"

"github.com/spf13/cobra"
"github.com/treeverse/lakefs/pkg/api/apigen"
Expand All @@ -23,7 +21,6 @@ var fsUploadCmd = &cobra.Command{
Args: cobra.ExactArgs(1),
ValidArgsFunction: ValidArgsRepository,
Run: func(cmd *cobra.Command, args []string) {
start := time.Now()
client := getClient()
pathURI, _ := getSyncArgs(args, true, false)
syncFlags := getSyncFlags(cmd, client)
Expand Down Expand Up @@ -85,9 +82,6 @@ var fsUploadCmd = &cobra.Command{
Operation: "Upload",
Tasks: s.Summary(),
})
finish := time.Since(start)
fmt.Printf("Execution time: %s\n", finish)

},
}

Expand Down
4 changes: 2 additions & 2 deletions cmd/lakectl/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ type Configuration struct {
} `mapstructure:"server"`
Options struct {
Parallelism int `mapstructure:"parallelism"`
} `mapstructure:"Job"`
} `mapstructure:"options"`
Metastore struct {
Type lakefsconfig.OnlyString `mapstructure:"type"`
Hive struct {
Expand Down Expand Up @@ -578,7 +578,7 @@ func initConfig() {
viper.SetDefault("server.retries.min_wait_interval", defaultMinRetryInterval)
viper.SetDefault("experimental.local.posix_permissions.enabled", false)
viper.SetDefault("local.skip_non_regular_files", false)
viper.SetDefault("job.parallelism", defaultParallelismConfig)
viper.SetDefault("options.parallelism", defaultParallelismConfig)

cfgErr = viper.ReadInConfig()
}

0 comments on commit 41993e0

Please sign in to comment.