mirror of https://github.com/openspug/spug
				
				
				
			
		
			
				
	
	
		
			17 lines
		
	
	
		
			488 B
		
	
	
	
		
			Python
		
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			488 B
		
	
	
	
		
			Python
		
	
	
# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug
 | 
						|
# Copyright: (c) <spug.dev@gmail.com>
 | 
						|
# Released under the AGPL-3.0 License.
 | 
						|
from django.core.management.base import BaseCommand
 | 
						|
from apps.schedule.scheduler import Scheduler
 | 
						|
import logging
 | 
						|
 | 
						|
logging.basicConfig(level=logging.WARNING, format='%(asctime)s %(message)s')
 | 
						|
 | 
						|
 | 
						|
class Command(BaseCommand):
 | 
						|
    help = 'Start schedule process'
 | 
						|
 | 
						|
    def handle(self, *args, **options):
 | 
						|
        s = Scheduler()
 | 
						|
        s.run()
 |