Add; test importer task

This commit is contained in:
Aroy-Art 2024-11-05 21:24:51 +01:00
parent 7375195b99
commit 1396311d1d
Signed by: Aroy
GPG key ID: DB9689E9391DD156

View 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"