minor formatting fixes, add ability estimation service class
This commit is contained in:
parent
fc42f0c5c1
commit
4ceeadbbb8
@ -2,6 +2,7 @@ import os, sys, logging
|
|||||||
|
|
||||||
from lib.application_configs import ApplicationConfigs
|
from lib.application_configs import ApplicationConfigs
|
||||||
from services.form_generation_service import FormGenerationService
|
from services.form_generation_service import FormGenerationService
|
||||||
|
from services.ability_estimation_service import AbilityEstimationService
|
||||||
from helpers import aws_helper
|
from helpers import aws_helper
|
||||||
|
|
||||||
from daemonize import Daemonize
|
from daemonize import Daemonize
|
||||||
@ -18,6 +19,10 @@ class ServiceListener(Consumer):
|
|||||||
# gather/manage/process data based on the particular needs
|
# gather/manage/process data based on the particular needs
|
||||||
logging.info('Incoming message: %s', body)
|
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 = FormGenerationService(body)
|
||||||
service.process()
|
service.process()
|
||||||
|
|
||||||
|
4
app/services/ability_estimation_service.py
Normal file
4
app/services/ability_estimation_service.py
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
from services.base import Base
|
||||||
|
|
||||||
|
class AbilityEstimationService(Base):
|
||||||
|
pass
|
@ -14,7 +14,6 @@ from models.target import Target
|
|||||||
|
|
||||||
from services.base import Base
|
from services.base import Base
|
||||||
|
|
||||||
|
|
||||||
class FormGenerationService(Base):
|
class FormGenerationService(Base):
|
||||||
|
|
||||||
def process(self):
|
def process(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user