Skip to content

Instantly share code, notes, and snippets.

@yuriwoof yuriwoof/app.py
Created Sep 16, 2017

Embed
What would you like to do?
from __future__ import absolute_import
from celery_flask import make_celery
from flask import Flask
from config import Config
config = Config()
flask_app = Flask(__name__)
flask_app.config.update(
CELERY_BROKER_URL=config.CELERY_BROKER_URL
)
celery = make_celery(flask_app)
@celery.task()
def add_together(a, b):
return a + b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.