email services updated
This commit is contained in:
@@ -16,6 +16,14 @@ RUN poetry config virtualenvs.create false && poetry install --no-interaction --
|
||||
# Copy application code
|
||||
ADD /BankServices/SenderService /
|
||||
|
||||
ADD /Configs /Configs
|
||||
ADD /Schemas /Schemas
|
||||
ADD /Commons /Commons
|
||||
|
||||
ADD /Services/MongoService /Services/MongoService
|
||||
ADD /Services/PostgresService /Services/PostgresService
|
||||
ADD /Services/EmailService /Services/EmailService
|
||||
|
||||
# Set Python path to include app directory
|
||||
ENV PYTHONPATH=/ PYTHONUNBUFFERED=1 PYTHONDONTWRITEBYTECODE=1
|
||||
|
||||
|
||||
@@ -1,11 +1,21 @@
|
||||
import time
|
||||
from jinja2 import Template
|
||||
|
||||
|
||||
# todo Check if postgres is_email_send === False then send email
|
||||
# todo Trigger @mongo email_send = False then send email
|
||||
def app():
|
||||
print("Hello from sender service!")
|
||||
|
||||
|
||||
def check_any_written_stage_in_mongo_database(mongo_provider) -> bool:
|
||||
return mongo_provider.find_one(filter_query={"stage": "written", "send": None})
|
||||
|
||||
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
while True:
|
||||
app()
|
||||
time.sleep(5)
|
||||
|
||||
@@ -5,7 +5,12 @@ description = "Add your description here"
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.12"
|
||||
dependencies = [
|
||||
"arrow>=1.3.0",
|
||||
"fastapi>=0.115.11",
|
||||
"jinja2>=3.1.6",
|
||||
"psycopg2-binary>=2.9.10",
|
||||
"pymongo>=4.11.3",
|
||||
"redbox>=0.2.1",
|
||||
"redmail>=0.6.0",
|
||||
"sqlalchemy-mixins>=2.0.5",
|
||||
]
|
||||
|
||||
0
BankServices/SenderService/templates/a.txt
Normal file
0
BankServices/SenderService/templates/a.txt
Normal file
Reference in New Issue
Block a user