Skip to content

Commit

Permalink
mo fixes mo problems
Browse files Browse the repository at this point in the history
  • Loading branch information
nadim-az committed Jan 13, 2025
1 parent 847b050 commit c48ca91
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/provider/digitalocean/droplet.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func (p *Provider) CreateDroplet(ctx context.Context, definition provider.TaskDe

_, err = p.dockerClients[ip].Ping(ctx)
if err != nil {
return false, errors.Errorf("failed to ping docker client at: %s", ip)
return false, nil
}

p.logger.Info("droplet is active", zap.Duration("after", time.Since(start)), zap.String("task", definition.Name))
Expand Down
3 changes: 2 additions & 1 deletion core/provider/digitalocean/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,10 @@ func (t *Task) Start(ctx context.Context) error {
return true, nil
}

return false, errors.New("task not running after 5 minutes")
return false, nil
})

t.logger.Info("Final task status after start", zap.Any("status", t.state.Status))
return err
}

Expand Down

0 comments on commit c48ca91

Please sign in to comment.