stuff
This commit is contained in:
		@@ -8,9 +8,7 @@ from sentry_sdk.integrations.logging import LoggingIntegration
 | 
			
		||||
from config import Config
 | 
			
		||||
from apscheduler.schedulers.blocking import BlockingScheduler
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def run():
 | 
			
		||||
    logging.info("Csirip")
 | 
			
		||||
from run_scheduler import run
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def main():
 | 
			
		||||
@@ -38,7 +36,12 @@ def main():
 | 
			
		||||
 | 
			
		||||
    scheduler = BlockingScheduler()
 | 
			
		||||
    scheduler.add_job(run, trigger='interval', seconds=Config.INTERVAL)
 | 
			
		||||
    scheduler.start()
 | 
			
		||||
    try:
 | 
			
		||||
        scheduler.start()
 | 
			
		||||
    except KeyboardInterrupt:
 | 
			
		||||
        pass
 | 
			
		||||
 | 
			
		||||
    scheduler.shutdown()
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
if __name__ == '__main__':
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										5
									
								
								birb_scheduler/run_scheduler.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								birb_scheduler/run_scheduler.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,5 @@
 | 
			
		||||
import logging
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def run():
 | 
			
		||||
    logging.info("Csirip")
 | 
			
		||||
		Reference in New Issue
	
	Block a user