If we have a state for a step on completion put that in the database
instead of guessing off the exit_code.