Coder Social home page Coder Social logo

Get deployment status via doctl about doctl HOT 3 CLOSED

mmoravcik avatar mmoravcik commented on July 19, 2024 1
Get deployment status via doctl

from doctl.

Comments (3)

danaelhe avatar danaelhe commented on July 19, 2024

Hi there,

Thank you for the suggestion and write up. Just to make sure I understand your use case correctly; currently get-deployment will output something like this:

 % doctl apps get-deployment 3785-4bc2   e652-401c-8794
ID                                      Cause               Progress    Created At                       Updated At
e652-401c-8794    app spec updated    6/7         2023-09-12 13:49:39 +0000 UTC    2023-09-12 13:49:50 +0000 UTC

You're saying that the progress field with "6/7" could mean a lot of things (i.e. is the deployment still in progress? is it cancelled and stoped at 6th step? etc.) And it'd be more clear if there was also a status field that would indicate if the deployment is still in progress, cancelled, or finished? So something like this:

 % doctl apps get-deployment 3785-4bc2   e652-401c-8794
ID                                      Cause               Progress    Status           Created At                                            Updated At
e652-401c-8794    app spec updated    6/7             Cancelled     2023-09-12 13:49:39 +0000 UTC    2023-09-12 13:49:50 +0000 UTC

Did I understand you correctly?

from doctl.

mmoravcik avatar mmoravcik commented on July 19, 2024

Hi there,

Thank you for the suggestion and write up. Just to make sure I understand your use case correctly; currently get-deployment will output something like this:

 % doctl apps get-deployment 3785-4bc2   e652-401c-8794
ID                                      Cause               Progress    Created At                       Updated At
e652-401c-8794    app spec updated    6/7         2023-09-12 13:49:39 +0000 UTC    2023-09-12 13:49:50 +0000 UTC

You're saying that the progress field with "6/7" could mean a lot of things (i.e. is the deployment still in progress? is it cancelled and stoped at 6th step? etc.) And it'd be more clear if there was also a status field that would indicate if the deployment is still in progress, cancelled, or finished? So something like this:

 % doctl apps get-deployment 3785-4bc2   e652-401c-8794
ID                                      Cause               Progress    Status           Created At                                            Updated At
e652-401c-8794    app spec updated    6/7             Cancelled     2023-09-12 13:49:39 +0000 UTC    2023-09-12 13:49:50 +0000 UTC

Did I understand you correctly?

Yes, spot on! I could utilise x/x as finished deployment, but I still won't be sure - was it successful, has it failed?
Also my use case with 2/10 stuck forever, I can't tell if that's a final stage or if it will ever continue (now I know it won't)

from doctl.

danaelhe avatar danaelhe commented on July 19, 2024

Awesome, this will be straight forward to implemment since the API does support a phase attribute that describes it the deployment is either: "UNKNOWN" "PENDING_BUILD" "BUILDING" "PENDING_DEPLOY" "DEPLOYING" "ACTIVE" "SUPERSEDED" "ERROR" "CANCELED"

I've added a ticket in our backlog to prioritize as soon as we can. If you'd like to take a crack it, we're more than happy to review your PR ✅

from doctl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.