Skip to content

Commit

Permalink
/update-model-cache should be registered manually as per docs
Browse files Browse the repository at this point in the history
We didn't want this view to be registered by default since it's easy
to bring down the service with it.  ;-)

Here's from the docs on how to register it manually:

    'flask_add_url_rules': [
        {
            '__factory__': 'palladium.server.add_url_rule',
            'rule': '/update-model-cache',
            'view_func': 'palladium.server.update_model_cache',
            'methods': ['POST'],
        },
    ]
  • Loading branch information
dnouri committed May 15, 2018
1 parent 39d94d1 commit 5483bff
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion palladium/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,6 @@ def fit():
return make_ujson_response({'job_id': job_id}, status_code=200)


@app.route('/update-model-cache', methods=['POST'])
@PluggableDecorator('update_model_cache_decorators')
@args_from_config
def update_model_cache(model_persister):
Expand Down

0 comments on commit 5483bff

Please sign in to comment.