def main():
    config = get_config(POLIGLO_SERVER_URL, 'all')
    connection = get_connection(config)
    default_main(POLIGLO_SERVER_URL, WORKER_TYPE, process, {'connection': connection})
def main():
    config = get_config(POLIGLO_SERVER_URL, WORKER_TYPE)
    mongo_connection = MongoClient(config.get('MONGO_URI'))[config.get('MONGO_DB')]

    default_main(POLIGLO_SERVER_URL, WORKER_TYPE, process, {'mongo_connection': mongo_connection})