File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -689,14 +689,21 @@ async function getSqlInstanceInfo({
689689 throw error ;
690690 }
691691
692+ const clusterDetailLaggingAfterProvision = createStatus === "READY" ;
693+
692694 return {
693- exists : createStatus === "PENDING" || createStatus === "RUNNING" ,
695+ // The cluster-detail API can lag behind a successful create result.
696+ // Treat that window as an existing instance that is still warming up.
697+ exists :
698+ clusterDetailLaggingAfterProvision ||
699+ createStatus === "PENDING" ||
700+ createStatus === "RUNNING" ,
694701 envId,
695702 instanceId : "default" ,
696703 schema : envId ,
697704 rawStatus :
698705 typeof createRawStatus === "string" ? createRawStatus : null ,
699- status : createStatus ,
706+ status : clusterDetailLaggingAfterProvision ? "PENDING" : createStatus ,
700707 createResult : createData ?? createResult ,
701708 } ;
702709 }
You can’t perform that action at this time.
0 commit comments