Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/reflex-hosting-cli/news/6797.feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
When a deployment requires approval, `reflex deploy` now reports that the build was submitted for approval and will deploy automatically once approved, instead of polling indefinitely.
12 changes: 8 additions & 4 deletions packages/reflex-hosting-cli/src/reflex_cli/utils/hosting.py
Original file line number Diff line number Diff line change
Expand Up @@ -1993,6 +1993,11 @@ def watch_deployment_status(deployment_id: str, client: AuthenticatedClient) ->
if "completed successfully" in status:
console.success(status)
break
if "AwaitingApproval" in status:
console.success(
"build submitted for approval; it will deploy automatically once an approver approves it."
)
break
if "build error" in status:
console.warn(status)
console.warn(
Expand All @@ -2008,10 +2013,9 @@ def watch_deployment_status(deployment_id: str, client: AuthenticatedClient) ->
if "bad response" in status:
console.warn(status)
return True
if status == current_status:
continue
current_status = status
console.info(status)
if status != current_status:
current_status = status
console.info(status)
time.sleep(0.5)
return True

Expand Down
Loading