We are running a website built with Django and Piston and I want to implement celery to offload tasks to an external server. I don't really want to run Django on the secondary server and would like to simply run a pure Python celery worker. Is it possible for me to write simple function stubs on the Django server and write the actual function logic on the secondary server?
i.e.
Django Side
from celery import task
@task
send_message(fromUser=None, toUser=None, msgType=None, msg=None):
pass
Server Side
from celery import Celery
celery = Celery('hello', broker='amqp://guest@localhost//')
@celery.task
send_message(fromUser=None, toUser=None, msgType=None, msg=None):
# Do send_message logic here