Skip to content

apps status --watch reports completion before the deployment becomes current #7299

Description

@masenf

Package: reflex-hosting-cli and/or the hosting API (reproduced with both main at ea035ea47 and #7207 at 988718e78)

After a rollback, reflex cloud apps status <deployment> --watch exits with Success: deployment completed successfully. For a short time after that, the server still treats the previous deployment as the app's current one. A rollback issued right away is refused:

$ reflex cloud apps rollback D1 --app-id A      # D2 is current
Success: Rollback to deployment D1 started.
$ reflex cloud apps status D1 --watch
Success: deployment completed successfully
$ reflex cloud apps rollback D2 --app-id A      # immediately after
this deployment is already the app's current deployment
[exit=1]

About 20 seconds later the same rollback D2 succeeds, and apps history / apps inspect show D1 as Running / latest_deployment. main's CLI hits the same thing in the opposite direction.

Expected: --watch returns only once the deployment is the app's current deployment, so a script can chain commands after it. If that isn't possible, the server's "current deployment" check should agree with the status --watch reads.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions