# Create your tasks here from __future__ import absolute_import, unicode_literals from random import random, randint from apps.utils.tasks import CustomTask from celery import shared_task from django.core.mail import send_mail @shared_task(base=CustomTask) def show(x=1): return 40/int(x)