def main():
    log.info('Worker starting...')

    # TODO: Register the callbacks

    pubsub.pull_feedback(pubsub_callback)
    pubsub.pull_answer(answer_callback)

    # END TODO

    while True:
        time.sleep(60)
def main():
    log.info('Worker starting...')
    pubsub.pull_answer(answer_callback)
    while True:
        time.sleep(60)
Esempio n. 3
0
def main():
    log.info('Worker starting...')
    pubsub.pull_answer(answer_callback)
    while True:
        time.sleep(60)