Skip to content

Commit

Permalink
Add "in the background" to creating message
Browse files Browse the repository at this point in the history
To make it clear what's going on

Signed-off-by: Ben Firshman <ben@firshman.co.uk>
  • Loading branch information
bfirsh committed Jan 8, 2021
1 parent c2a0586 commit 1ed1cc0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions go/pkg/project/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ func (p *Project) CreateExperiment(args CreateExperimentArgs, async bool, workCh

if exp.Path == "" {
if !quiet {
console.Info("Creating experiment %s", exp.ShortID())
console.Info("Creating experiment %s...", exp.ShortID())
}
return exp, nil
}
Expand All @@ -255,7 +255,7 @@ func (p *Project) CreateExperiment(args CreateExperimentArgs, async bool, workCh
}

if !quiet {
console.Info("Creating experiment %s, copying '%s' to '%s'...", exp.ShortID(), exp.Path, p.repository.RootURL())
console.Info("Creating experiment %s, copying '%s' to '%s' in the background...", exp.ShortID(), exp.Path, p.repository.RootURL())
}

work := func() error {
Expand Down Expand Up @@ -299,13 +299,13 @@ func (p *Project) CreateCheckpoint(args CreateCheckpointArgs, async bool, workCh
// the checkpoint without saving anything
if chk.Path == "" {
if !quiet {
console.Info("Creating checkpoint %s", chk.ShortID())
console.Info("Creating checkpoint %s...", chk.ShortID())
}
return chk, nil
}

if !quiet {
console.Info("Creating checkpoint %s, copying '%s' to '%s'...", chk.ShortID(), chk.Path, p.repository.RootURL())
console.Info("Creating checkpoint %s, copying '%s' to '%s' in the background...", chk.ShortID(), chk.Path, p.repository.RootURL())
}

tempDir, err := repository.CopyToTempDir(p.directory, chk.Path)
Expand Down

0 comments on commit 1ed1cc0

Please sign in to comment.