1 2 3 4 5 6 7 8 9 10 11
from __future__ import absolute_import from celery.task import Task import time class monitoring(Task): def run(self): time.sleep(5) print("monitoring")