renamed to loft service to be more clear, added solution file generation naming via regex, few qol things

This commit is contained in:
Josh Burman
2021-10-29 00:10:30 +00:00
parent 3a42d83b76
commit d13574ac08
4 changed files with 20 additions and 11 deletions

View File

@ -1,11 +1,14 @@
import os
import sys
from services.loft import Loft
from services.loft_service import LoftService
from helpers import aws_helper
from sqs_listener import SqsListener
from sqs_listener.daemon import Daemon
print("Starting Solver Service (v0.3.1)...")
# listen to the solver queue
# # listen to the solver queue
while True:
msg = aws_helper.receive_message(os.environ['SOLVER_SQS_INGEST_QUEUE'])
@ -14,7 +17,7 @@ while True:
# for now the solver service only supports Loft types
# this is here to allow us to create an extensible way to
# gather/manage/process data based on the particular needs
service = Loft(message)
service = LoftService(message)
service.process()
# delete message once process is complete