Skip to content

Instantly share code, notes, and snippets.

View dancric's full-sized avatar

Danny Crichton dancric

View GitHub Profile
@dancric
dancric / gist:3757162
Created September 20, 2012 17:19
Celery with Bulbs
#proj/tasks.py
from __future__ import absolute_import
from proj.celery import celery
from bulbs.rexster import Graph
@celery.task
def open_graph():
print("Before opening the graph db")
graph_db = Graph()