File tree 1 file changed +16
-4
lines changed
1 file changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -217,14 +217,26 @@ setImmediate(async () => {
217
217
try {
218
218
const [ osPingRes , redisPingRes , dbPingRes , temporalPingRes ] = await Promise . all ( [
219
219
// ping opensearch
220
- opensearch . ping ( ) . then ( ( res ) => res . body ) ,
220
+ opensearch . ping ( ) . then ( ( res ) => {
221
+ console . log ( 'Pinged opensearch!' )
222
+ return res . body
223
+ } ) ,
221
224
// ping redis,
222
- redis . ping ( ) . then ( ( res ) => res === 'PONG' ) ,
225
+ redis . ping ( ) . then ( ( res ) => {
226
+ console . log ( 'Pinged redis!' )
227
+ return res === 'PONG'
228
+ } ) ,
223
229
// ping database
224
- seq . query ( 'select 1' , { type : QueryTypes . SELECT } ) . then ( ( rows ) => rows . length === 1 ) ,
230
+ seq . query ( 'select 1' , { type : QueryTypes . SELECT } ) . then ( ( rows ) => {
231
+ console . log ( 'Pinged database!' )
232
+ return rows . length === 1
233
+ } ) ,
225
234
// ping temporal
226
235
req . temporal
227
- ? ( req . temporal as TemporalClient ) . workflowService . getSystemInfo ( { } ) . then ( ( ) => true )
236
+ ? ( req . temporal as TemporalClient ) . workflowService . getSystemInfo ( { } ) . then ( ( ) => {
237
+ console . log ( 'Pinged temporal!' )
238
+ return true
239
+ } )
228
240
: Promise . resolve ( true ) ,
229
241
] )
230
242
You can’t perform that action at this time.
0 commit comments