File tree 1 file changed +6
-10
lines changed
1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -212,16 +212,12 @@ async function main(options = {}) {
212
212
// there for namespace monitor won't be registered
213
213
if ( internal_rpc_client && config . NAMESPACE_MONITOR_ENABLED ) {
214
214
endpoint_stats_collector . instance ( ) . set_rpc_client ( internal_rpc_client ) ;
215
-
216
- //wait with monitoring until pod has started
217
- setTimeout ( ( ) => {
218
- // Register a bg monitor on the endpoint
219
- background_scheduler . register_bg_worker ( new NamespaceMonitor ( {
220
- name : 'namespace_fs_monitor' ,
221
- client : internal_rpc_client ,
222
- should_monitor : nsr => Boolean ( nsr . nsfs_config ) ,
223
- } ) ) ;
224
- } , 1000 * 60 ) ;
215
+ // Register a bg monitor on the endpoint
216
+ background_scheduler . register_bg_worker ( new NamespaceMonitor ( {
217
+ name : 'namespace_fs_monitor' ,
218
+ client : internal_rpc_client ,
219
+ should_monitor : nsr => Boolean ( nsr . nsfs_config && process . env [ 'NSFS_NSR_' + nsr . name ] ) ,
220
+ } ) ) ;
225
221
}
226
222
227
223
if ( config . ENABLE_SEMAPHORE_MONITOR ) {
You can’t perform that action at this time.
0 commit comments