mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
10 lines
224 B
Python
10 lines
224 B
Python
from celery import Celery
|
|
|
|
app = Celery(__name__)
|
|
app.config_from_object('config.celery')
|
|
|
|
import tasks.spider
|
|
|
|
if __name__ == '__main__':
|
|
app.start(argv=['tasks.spider', 'worker', '-P', 'eventlet', '-E', '-l', 'INFO'])
|