def clientPoll(jobId):
    printDebugMessage(u'clientPoll', u'Begin', 1)
    result = u'PENDING'
    while ((result == u'RUNNING') or (result == u'PENDING')):
        result = serviceGetStatus(jobId)
        if (outputLevel > 0):
            print(result)
        if ((result == u'RUNNING') or (result == u'PENDING')):
            time.sleep(pollFreq)
    printDebugMessage(u'clientPoll', u'End', 1)
def clientPoll(jobId):
    printDebugMessage(u'clientPoll', u'Begin', 1)
    result = u'PENDING'
    while ((result == u'RUNNING') or (result == u'PENDING')):
        result = serviceGetStatus(jobId)
        if (outputLevel > 0):
            print(result)
        if ((result == u'RUNNING') or (result == u'PENDING')):
            time.sleep(pollFreq)
    printDebugMessage(u'clientPoll', u'End', 1)