Skip to content

Commit afef7c0

Browse files
emmaling27Convex, Inc.
authored andcommitted
Fix staged indexes on components push path (#41028)
Fixes a bug where the CLI would wait for staged indexes to backfill before finishing push. This PR omits the staged indexes from the index complete and index total counts. GitOrigin-RevId: 36a9697192ee8d0da158dd93ff24ab28b64b4c0d
1 parent 0fa43e4 commit afef7c0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

crates/application/src/deploy_config.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,10 @@ impl<RT: Runtime> Application<RT> {
546546
.get_application_indexes(namespace)
547547
.await?
548548
{
549+
// Skip counting indexes that are staged
550+
if index.config.is_staged() {
551+
continue;
552+
}
549553
if !index.config.is_backfilling() {
550554
indexes_complete += 1;
551555
}

0 commit comments

Comments
 (0)