from celery import Celery app = Celery('tasks', backend ='redis://172.104.92.245', broker='redis://172.104.92.245') @app.task def hello(): return 'hello world'