Skip to content

Commit ac3b343

Browse files
Update SendForBuildCertificate class to increase parts from 4 to 30 for improved order processing efficiency. Add comment to clarify the purpose of dividing orders into parts for SQS queue submission.
1 parent 86be8e9 commit ac3b343

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/application/send_for_build_certificate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@
1111

1212
class SendForBuildCertificate:
1313
def __init__(self, sqs_service: SQSService):
14-
self.parts = 4
1514
self.sqs_service = sqs_service
16-
15+
self.parts = 30
1716

1817
def execute(self, orders: List[TechOrdersResponse]):
1918
processed_orders = self.__processed_orders_dict(orders)
@@ -22,6 +21,7 @@ def execute(self, orders: List[TechOrdersResponse]):
2221

2322

2423
def __processed_orders_dict(self, orders: List[TechOrdersResponse]) -> List[List[dict]]:
24+
# Divide as ordens em partes para enviar para a fila de build de certificado,
2525
parts = []
2626
for i in range(0, len(orders), self.parts):
2727
parts.append([order.model_dump() for order in orders[i:i+self.parts]])

0 commit comments

Comments
 (0)