File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -231,12 +231,15 @@ async function main(options = {}) {
231
231
if ( internal_rpc_client && config . NAMESPACE_MONITOR_ENABLED ) {
232
232
endpoint_stats_collector . instance ( ) . set_rpc_client ( internal_rpc_client ) ;
233
233
234
- // Register a bg monitor on the endpoint
235
- background_scheduler . register_bg_worker ( new NamespaceMonitor ( {
236
- name : 'namespace_fs_monitor' ,
237
- client : internal_rpc_client ,
238
- should_monitor : nsr => Boolean ( nsr . nsfs_config ) ,
239
- } ) ) ;
234
+ //wait with monitoring until pod has started
235
+ setTimeout ( ( ) => {
236
+ // Register a bg monitor on the endpoint
237
+ background_scheduler . register_bg_worker ( new NamespaceMonitor ( {
238
+ name : 'namespace_fs_monitor' ,
239
+ client : internal_rpc_client ,
240
+ should_monitor : nsr => Boolean ( nsr . nsfs_config ) ,
241
+ } ) ) ;
242
+ } , 1000 * 60 ) ;
240
243
}
241
244
242
245
if ( config . ENABLE_SEMAPHORE_MONITOR ) {
You can’t perform that action at this time.
0 commit comments