deamonize and cursory logging

This commit is contained in:
Josh Burman
2021-10-31 03:50:07 +00:00
parent e2099509ae
commit 449c33915f
4 changed files with 41 additions and 15 deletions

View File

@ -1,4 +1,5 @@
class Base:
def __init__(self, source, ingest_type='message'):
print(f'creating instance of service of type LOFT...')
self.ingest_type = ingest_type
self.source = source

View File

@ -38,6 +38,7 @@ class LoftService(Base):
return attributes
def generate_solution(self):
print("generating solution...")
# temporary data for mocks
form_count = 10
@ -54,6 +55,7 @@ class LoftService(Base):
)
def stream_to_s3_bucket(self):
print("streaming solution to s3...")
# setup writer buffer and write processed forms to file
buffer = io.StringIO()
solution_file = service_helper.solution_to_file(buffer, self.solver_run.total_form_items, self.solution.forms)