kristinbranson / APT

Animal Part Tracker
GNU General Public License v3.0
71 stars 16 forks source link

AWS getPID sometimes fails #257

Open allenleetc opened 5 years ago

allenleetc commented 5 years ago

AWSEc2/getRemotePythonPID does not appear 100% reliable.

<blah blah start an AWS train>
"c:\Program Files\Git\usr\bin\ssh.exe" -i f:\Dropbox\AWS\al.pem -oStrictHostKeyChecking=no ubuntu@100.25.43.242 "pgrep python"
Remote PID is: NaN.

<nevertheless train looks to be going/OK>
allenleetc commented 5 years ago

added pause before process query maybe will help

allenleetc commented 5 years ago

still fails with a 1s pause but it does seem to be a matter of letting the process spin up. maybe longer pause, brief polling loop, or incorporate into train/trackmon