修改定时任务
This commit is contained in:
parent
edaf09994f
commit
95bc677472
|
@ -7,6 +7,5 @@ from django.core.mail import send_mail
|
||||||
|
|
||||||
|
|
||||||
@shared_task(base=CustomTask)
|
@shared_task(base=CustomTask)
|
||||||
def show():
|
def show(x=1):
|
||||||
x = randint(0, 5)
|
return 40/x
|
||||||
print(40/x)
|
|
||||||
|
|
Loading…
Reference in New Issue