-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update for handle failed deployment case #501
Conversation
update message to show error or success update error text update text
I want us to fix up the existing |
update after merge update service state name
968bfd5
to
4701a2b
Compare
src/protos/io/defang/v1/fabric.proto
Outdated
UNKNOWN = 0; | ||
|
||
// Build states (initial state for build) | ||
BUILD_PENDING = 1; // BUILD_QUEUED -> BUILD_ACTIVATING |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure why these aren't simply 1:1 the existing ones? Seems not too much gain for lot of confusion
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was trying to map them to something platform agnostic but probably a little early to be doing that.
src/protos/io/defang/v1/fabric.proto
Outdated
CREATED = 3; // BUILD_DEACTIVATING (done = true) | ||
|
||
// Update states (initial state for existing image) | ||
UPDATE_PENDING = 4; // UPDATE_QUEUE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
again, why the rename?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will change back.
src/cmd/cli/command/commands.go
Outdated
if err := waitServiceState(ctx, defangv1.ServiceState_SERVICE_COMPLETED, serviceInfos); err != nil && !errors.Is(err, context.Canceled) { | ||
if errors.Is(err, ErrDeploymentFailed) { | ||
term.Warn("Deployment FAILED. Service(s) not running.") | ||
cancelTail() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Handle FAILED deploy status
#491
DO NOT MERGE until https://github.com/DefangLabs/defang-mvp/pull/762 is approved