university-final-iot-backend/app/celery_builder.py

10 lines
341 B
Python

# App initialization
from flask import Flask
from .tasks import celery as celery_configurator
app = Flask(__name__, instance_relative_config=True)
app.config.from_object('config')
app.config.from_pyfile('config.py', silent=True)
app.config['MQTT_CLIENT_ID'] = 'final-iot-backend-server-worker'
celery = celery_configurator.make_celery(app)