@app.route('/poll')
def add_poll():
    task_id = request.args.get('tid')
    try:
        task = add.get_task(task_id)
    except ConnectionError:
        # Return the error message as an HTTP 500 error
        return 'Coult not connect to the task queue. Check to make sure that <strong>redis-server</strong> is running and try again.', 500
    ready = task.return_value is not None if task else None
    return jsonify(ready=ready)
Parse the plugin source code.
dataset/ETHPy150Open joeyespo/hello-redis-tasks/hello_redis_tasks.py/add_poll--crossover with--dataset/ETHPy150Open enthought/envisage/envisage/developer/ui/view/extension_registry_browser.py/ExtensionRegistryBrowser._parse_plugin