Skip to content

Commit

Permalink
Add inv task for migrate to v2 thing
Browse files Browse the repository at this point in the history
  • Loading branch information
erinspace committed Jun 11, 2015
1 parent 16588b7 commit 3ff7c6b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ def migrate(migration, sources=None, kwargs_string=None, dry=True, async=False):
migrate(migrate_func, **kwargs)


@task
def migrate_to_source_partition(dry=True, async=False):
from scrapi.tasks import migrate_to_source_partition
migrate_to_source_partition()


@task
def reset_search():
run("curl -XPOST 'http://localhost:9200/_shutdown'")
Expand Down

0 comments on commit 3ff7c6b

Please sign in to comment.