Add; test importer task
This commit is contained in:
parent
7375195b99
commit
1396311d1d
1 changed files with 12 additions and 0 deletions
12
archivist/apps/importer/tasks.py
Normal file
12
archivist/apps/importer/tasks.py
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
import time
|
||||||
|
|
||||||
|
from celery import shared_task
|
||||||
|
|
||||||
|
@shared_task
|
||||||
|
def add(x, y):
|
||||||
|
return x + y
|
||||||
|
|
||||||
|
@shared_task
|
||||||
|
def wait(x):
|
||||||
|
time.sleep(x)
|
||||||
|
return f"Sleeping for {x} seconds"
|
Loading…
Reference in a new issue