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