Created
          June 5, 2012 17:29 
        
      - 
      
- 
        Save simondlr/2876406 to your computer and use it in GitHub Desktop. 
    tasks.py
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | from djcelery import celery | |
| @celery.task | |
| def add(x,y): | |
| return x + y | |
| @celery.task | |
| def sleeptask(i): | |
| from time import sleep | |
| sleep(i) | |
| return i | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment