add celery stuff
This commit is contained in:
		
							
								
								
									
										8
									
								
								billard/tasks.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								billard/tasks.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,8 @@
 | 
			
		||||
from __future__ import absolute_import, unicode_literals
 | 
			
		||||
from celery import shared_task
 | 
			
		||||
from . import models
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@shared_task
 | 
			
		||||
def add(x, y):
 | 
			
		||||
    return x + y
 | 
			
		||||
		Reference in New Issue
	
	Block a user