Open johnaohara opened 1 year ago
Digging some more into this, the capture-stats
script sleep
is actually in a reapeat-until
loop;
- repeat-until: ${{DCOMBO}}-WRK-DONE
then:
- sh: sudo pmap -x ${{PID}} | grep total | awk '{print $4}' | sed 's/[^0-9]*//g'
then:
- set-state: WARM
- set-state: RUN.${{SCOMBO}}.warm ${{=[...${{RUN.${{SCOMBO}}.warm}} , ${{WARM}}]}}
- sleep: 2000
- signal: ${{DCOMBO}}-DONE
the nannytask should walk the Cmd stack and find the repeat-until
command, realise that the script is waiting for a signal (which may have already been fired) and not stop the run
the nannytask will terminate a run if it finds scripts that are not suspended at a
wait-for
or ash
command that has not returned.if the command is something else, e.g.
sleep
, the trun is terminated prematurely.e.g. for a script that does;
qDup will terminate the run if the only non
wait-for
script running is executingsleep