Skip to content

Commit

Permalink
add es_host as a parameter to the fastforward task
Browse files Browse the repository at this point in the history
  • Loading branch information
miltontony committed Feb 11, 2015
1 parent 446e99d commit 87d81d9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions unicore/distribute/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@


@app.task(ignore_result=True)
def fastforward(repo_path, index_prefix):
workspace = EG.workspace(repo_path, index_prefix=index_prefix)
def fastforward(repo_path, index_prefix, es_host='http://localhost:9200'):
workspace = EG.workspace(
repo_path, index_prefix=index_prefix, es={'urls': [es_host]})
workspace.fast_forward()
workspace.reindex(Page)
workspace.reindex(Category)
Expand Down

0 comments on commit 87d81d9

Please sign in to comment.