def simple_state_machine():
    from random import random

    from furious.async import Async

    number = random()
    logging.info('Generating a number... %s', number)

    if number > 0.25:
        logging.info('Continuing to do stuff.')
        return Async(target=simple_state_machine)

    return number
Pick a number, if it is more than some cuttoff continue the chain.
dataset/ETHPy150Open Workiva/furious/example/simple_workflow.py/simple_state_machine