mirror of
https://github.com/wassname/openshift-celery-cartridge.git
synced 2026-07-19 11:25:59 +08:00
14 lines
181 B
Python
14 lines
181 B
Python
import celery
|
|
app = celery.Celery()
|
|
|
|
@app.task
|
|
def addtest(x, y):
|
|
return x + y
|
|
|
|
@app.task
|
|
def run_spiders(name, **kwargs):
|
|
"""
|
|
@param name: spider name
|
|
"""
|
|
pass
|