@@ -411,6 +411,7 @@ def _run_scheduler(self, channel, sub_id):
411
411
if not event :
412
412
# If we received a keep-alive event, just continue
413
413
continue
414
+ self .log .debug (f"Event received: { channel } -{ event } " )
414
415
except Exception as e :
415
416
with self ._stop_thread_lock :
416
417
if self ._stop_thread :
@@ -427,8 +428,11 @@ def _run_scheduler(self, channel, sub_id):
427
428
continue
428
429
subscribe_retries = 0
429
430
for job , runtime , platform , rules in self ._sched .get_schedule (event ):
431
+ self .log .debug (f"---Runtime: { runtime .config .name } " )
430
432
input_node = self ._api .node .get (event ['id' ])
433
+ self .log .debug (f"Checking input_node: { input_node ['id' ]} " )
431
434
jobfilter = event .get ('jobfilter' )
435
+ self .log .debug (f"Job filter: { jobfilter } -{ input_node ['id' ]} " )
432
436
# Add to node data the jobfilter if it exists in event
433
437
if jobfilter and isinstance (jobfilter , list ):
434
438
input_node ['jobfilter' ] = jobfilter
@@ -441,8 +445,10 @@ def _run_scheduler(self, channel, sub_id):
441
445
continue
442
446
if not self ._verify_architecture_filter (job , input_node ):
443
447
continue
448
+ self .log .debug (f"Checking if node can be created: { input_node ['id' ]} " )
444
449
with self ._api_helper_lock :
445
450
flag = self ._api_helper .should_create_node (rules , input_node )
451
+ self .log .debug (f"should create node flag: { flag } { input_node ['id' ]} " )
446
452
if flag :
447
453
retry_counter = event .get ('retry_counter' , 0 )
448
454
self ._run_job (job , runtime , platform , input_node , retry_counter )
0 commit comments