minor formatting fixes, add ability estimation service class

This commit is contained in:
brmnjsh 2023-09-03 21:55:48 +00:00
parent fc42f0c5c1
commit 4ceeadbbb8
3 changed files with 9 additions and 1 deletions

View File

@ -2,6 +2,7 @@ import os, sys, logging
from lib.application_configs import ApplicationConfigs
from services.form_generation_service import FormGenerationService
from services.ability_estimation_service import AbilityEstimationService
from helpers import aws_helper
from daemonize import Daemonize
@ -18,6 +19,10 @@ class ServiceListener(Consumer):
# gather/manage/process data based on the particular needs
logging.info('Incoming message: %s', body)
# have to swith to either this or the AbilityEstimationService
# but depending on if we can add the tagset to the sqs message body
# we either extract that and then delegate to the appropriate service
# or get the action tag from the object through the aws helper function
service = FormGenerationService(body)
service.process()

View File

@ -0,0 +1,4 @@
from services.base import Base
class AbilityEstimationService(Base):
pass

View File

@ -14,7 +14,6 @@ from models.target import Target
from services.base import Base
class FormGenerationService(Base):
def process(self):