forked from chrisseto/Archiver
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtasks.py
More file actions
47 lines (29 loc) · 638 Bytes
/
Copy pathtasks.py
File metadata and controls
47 lines (29 loc) · 638 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
from invoke import task, run
@task
def setup():
run('chmod +x Foreman')
run('chmod +x Worker')
@task
def vagrant():
run('cd vagrant && vagrant up')
@task
def foreman():
run('./Foreman')
@task
def worker():
run('./Worker')
@task
def docker_worker():
run('celery -A archiver.celery worker -I archiver.worker.tasks -b $SERVICE_PORT_5672_TCP_ADDR')
@task
def notebook():
run('ipython notebook Tasking.ipynb')
@task
def flower():
run('celery -A archiver.celery flower')
@task
def clean():
run('find . -name \*.pyc -delete')
@task
def purge():
run('celery -A archiver.celery purge -f')