renamed to loft service to be more clear, added solution file generation naming via regex, few qol things
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user