File tree Expand file tree Collapse file tree 2 files changed +2
-17
lines changed
svc/pkg/cluster/worker/src/workers Expand file tree Collapse file tree 2 files changed +2
-17
lines changed Original file line number Diff line number Diff line change @@ -70,21 +70,6 @@ async fn inner(
7070 server. pool_type as i32
7171 ) ) ;
7272 if let backend:: cluster:: PoolType :: Gg = pool_type {
73- // Update db record
74- sql_execute ! (
75- [ ctx]
76- "
77- UPDATE db_cluster.servers_cloudflare
78- SET destroy_ts = $2
79- WHERE
80- server_id = $1 AND
81- destroy_ts IS NULL
82- " ,
83- server_id,
84- util:: timestamp:: now( ) ,
85- )
86- . await ?;
87-
8873 msg ! ( [ ctx] cluster:: msg:: server_dns_delete( server_id) {
8974 server_id: ctx. server_id,
9075 } )
Original file line number Diff line number Diff line change @@ -63,10 +63,10 @@ async fn inner(
6363 secondary_dns_record_id,
6464 } ) = row
6565 else {
66+ // TODO: This might get stuck in a loop if does not finish installing
6667 // NOTE: It is safe to do nothing in this case because both this worker and
6768 // `cluster-server-dns-create` use transactions
68- tracing:: warn!( "server has no dns records" ) ;
69- return Ok ( ( ) ) ;
69+ retry_bail ! ( "server has no dns records yet" ) ;
7070 } ;
7171
7272 let zone_id = unwrap ! ( util:: env:: cloudflare:: zone:: job:: id( ) , "dns not configured" ) ;
You can’t perform that action at this time.
0 commit comments