Eliminated duplication of ingest job cancellation check APIs