Attempt to improve stability of the test in UT scenarios. Added check to force stop scheduler if PID is still registered Added code to stop scheduler before asap tasks register, and start it again after Added debug code to try to investigate possible causes when an asap task could not be register.
Attempt to improve stability of the test in UT scenarios.
Added check to force stop scheduler if PID is still registered
Added code to stop scheduler before asap tasks register, and start it again after
Added debug code to try to investigate possible causes when an asap task could not be register.

eliasp/otrs,vlascoder/otrs,s7design/otrs,mbeijen/otrs-1,balazj/otrs,PortgasDAce/otrs,crythias/otrs,vlascoder/otrs,PortgasDAce/otrs,balazj/otrs,vlascoder/otrs,muehlbauer/otrs,oiami/otrs,moritz/otrs,mbeijen/otrs-1,s7design/otrs,xhoy/otrs,mbeijen/otrs-1,StCyr/otrs,moritz/otrs,nilei/otrs,linearregression/otrs,StCyr/otrs,capeit-tto/otrs,PortgasDAce/otrs,rudy500/otrs,crythias/otrs,oiami/otrs,crythias/otrs,muehlbauer/otrs,brandonshults01/otrs,linearregression/otrs,MBRG/otrs,eliasp/otrs,linearregression/otrs,PortgasDAce/otrs,oiami/otrs,oiami/otrs,MBRG/otrs,moritz/otrs,nilei/otrs,nilei/otrs,linearregression/otrs,balazj/otrs,muehlbauer/otrs,xhoy/otrs,linearregression/otrs,rudy500/otrs,MBRG/otrs,eliasp/otrs,moritz/otrs,noritnk/otrs,muehlbauer/otrs,noritnk/otrs,eliasp/otrs,oiami/otrs,StCyr/otrs,MBRG/otrs,StCyr/otrs,rudy500/otrs,s7design/otrs,capeit-tto/otrs,PortgasDAce/otrs,nilei/otrs,rudy500/otrs,eliasp/otrs,brandonshults01/otrs,thorsteneckel/otrs,MBRG/otrs,crythias/otrs,xhoy/otrs,mburggraf/otrs,crythias/otrs,s7design/otrs,mburggraf/otrs,brandonshults01/otrs,mburggraf/otrs,thorsteneckel/otrs,rudy500/otrs,thorsteneckel/otrs,balazj/otrs,xhoy/otrs,nilei/otrs,balazj/otrs,brandonshults01/otrs,capeit-tto/otrs,s7design/otrs,mburggraf/otrs,moritz/otrs,StCyr/otrs,thorsteneckel/otrs,brandonshults01/otrs,muehlbauer/otrs,thorsteneckel/otrs,mburggraf/otrs,xhoy/otrs,noritnk/otrs