neft_outward

This commit is contained in:
2026-04-22 01:34:12 +05:30
commit 58d8329dbd
12 changed files with 251 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
import time
from logging_config import get_logger
logger = get_logger(__name__)
class Scheduler:
def __init__(self, processor, config):
self.processor = processor
self.config = config
def run(self):
logger.info("Scheduler started")
while True:
try:
self.processor.process()
except Exception:
logger.exception("Processing cycle failed")
logger.info(
"Sleeping for %s minutes", self.config.poll_interval_minutes
)
time.sleep(self.config.poll_interval_minutes * 60)
``