import time
import random
from celery import shared_task

@shared_task(bind=True)
def debug_shared_task(self):
    rand_time = random.randint(1, 3)
    time.sleep(rand_time)
    print("debug shared task success : {} seconds".format(rand_time))
497ff78dfe8154ce7e243175315c8a27d94c6776
<mask token>

<mask token>


@shared_task(bind=True)
def debug_shared_task(self):
    rand_time = random.randint(1, 3)
    time.sleep(rand_time)
    print('debug shared task success : {} seconds'.format(rand_time))

import time
import random
from celery import shared_task


@shared_task(bind=True)
def debug_shared_task(self):
    rand_time = random.randint(1, 3)
    time.sleep(rand_time)
    print('debug shared task success : {} seconds'.format(rand_time))

import time
import random
from celery import shared_task

@shared_task(bind=True)
def debug_shared_task(self):
    rand_time = random.randint(1, 3)
    time.sleep(rand_time)
    print("debug shared task success : {} seconds".format(rand_time))