Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
nullfunc committed Jun 27, 2024
1 parent 6a69764 commit bec885e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
3 changes: 2 additions & 1 deletion src/cmd/cli/command/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (
"github.com/DefangLabs/defang/src/pkg/scope"
"github.com/DefangLabs/defang/src/pkg/term"
"github.com/DefangLabs/defang/src/pkg/types"
defangv1 "github.com/DefangLabs/defang/src/protos/io/defang/v1"
"github.com/aws/smithy-go"
"github.com/bufbuild/connect-go"
"github.com/spf13/cobra"
Expand Down Expand Up @@ -844,7 +845,7 @@ var composeUpCmd = &cobra.Command{
}
}()

if err := waitServiceState(ctx, cli.ServiceStarted, serviceInfos); err != nil && !errors.Is(err, context.Canceled) {
if err := waitServiceState(ctx, defangv1.ServiceState_STARTED, serviceInfos); err != nil && !errors.Is(err, context.Canceled) {
if errors.Is(err, ErrDeploymentFailed) {
term.Warn("Deployment FAILED. Service(s) not running.")
cancelTail()
Expand Down
10 changes: 0 additions & 10 deletions src/pkg/cli/tail.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,6 @@ const (
ServiceDeploying ServiceStatus = "DEPLOYING"
ServiceStarted ServiceStatus = "STARTED"
ServiceFailed ServiceStatus = "FAILED"

// ServiceDeploymentStarting ServiceStatus = "STARTING"
// ServiceDeploymentInProgress ServiceStatus = "IN_PROGRESS"
// ServiceStarted ServiceStatus = "COMPLETED"
// ServiceStopping ServiceStatus = "STOPPING"
// ServiceStopped ServiceStatus = "STOPPED"
// ServiceDeactivating ServiceStatus = "DEACTIVATING"
// ServiceDeprovisioning ServiceStatus = "DEPROVISIONING"
// ServiceFailed ServiceStatus = "FAILED"
// ServiceUnknown ServiceStatus = "UNKNOWN"
)

type EndLogConditional struct {
Expand Down

0 comments on commit bec885e

Please sign in to comment.