This assumes that $resultHRJob returns without an error. If you use civicrm_api3(), errors will be reported as exceptions, so we'll be less likely to suffer silent failures.