stuff
This commit is contained in:
parent
f4b226f298
commit
0765d98c1f
@ -8,9 +8,7 @@ from sentry_sdk.integrations.logging import LoggingIntegration
|
|||||||
from config import Config
|
from config import Config
|
||||||
from apscheduler.schedulers.blocking import BlockingScheduler
|
from apscheduler.schedulers.blocking import BlockingScheduler
|
||||||
|
|
||||||
|
from run_scheduler import run
|
||||||
def run():
|
|
||||||
logging.info("Csirip")
|
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
@ -38,7 +36,12 @@ def main():
|
|||||||
|
|
||||||
scheduler = BlockingScheduler()
|
scheduler = BlockingScheduler()
|
||||||
scheduler.add_job(run, trigger='interval', seconds=Config.INTERVAL)
|
scheduler.add_job(run, trigger='interval', seconds=Config.INTERVAL)
|
||||||
|
try:
|
||||||
scheduler.start()
|
scheduler.start()
|
||||||
|
except KeyboardInterrupt:
|
||||||
|
pass
|
||||||
|
|
||||||
|
scheduler.shutdown()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
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")
|
Loading…
Reference in New Issue
Block a user