@blueprint.route('/update', methods=['GET'])
def update():
  for namespace in metadata.get_namespaces():
    logging.info('Switching namespace: \'%s\'', namespace)
    namespace_manager.set_namespace(namespace)
    update_per_namespace()

  namespace_manager.set_namespace('')
  return ('', 204)
Iterate through all the users and do stuff.
dataset/ETHPy150Open tomwilkie/awesomation/src/appengine/tasks.py/update