Check API for ready before running lifecycle cmd

Check the API to make sure it's ready.

Also had to make changes on the parsing of enumerated jobs due automatically clearing all first