@shared_task
def notify_customer(message):
print('sending email...')
sleep(2)
print(message)
print('email were sent!')
def say_hello(request):
notify_customer.delay('test')
return render(request, 'hello.html', {'name': 'mosh'})
it works without delay but nothing print when I set delay