Closed Rwatana closed 4 days ago
@nayuta-ai Please check my code.
@nayuta-ai
According to reference I think I have implemented graceful shutdown. Please check my code.
log_service git:(feature/#46_Imprement_logs_endpoint_that_return_log_list) docker stop log_service-server-1
log_service-server-1
➜ log_service git:(feature/#46_Imprement_logs_endpoint_that_return_log_list) docker logs log_service-server-1
2024/11/18 15:12:22 Waiting for messages. To exit press CTRL^C
2024/11/18 15:12:22 HTTP server is running on :8080
2024/11/18 15:13:19 received sigint/sigterm, shutting down...
2024/11/18 15:13:19 press Ctrl^C again to force shutdown
2024/11/18 15:13:19 HTTP server gracefully stopped
2024/11/18 15:13:19 finished processing all jobs
➜ log_service git:(feature/#46_Imprement_logs_endpoint_that_return_log_list)
Issue Number
46
Implementation Summary
This pull request implements the presenter layer for the
/logs
endpoint. The presenter layer formats the data from the use case layer before sending it as a response. Key changes include:Presenter
interface and its implementation.HttpLogHandler
for the/logs
endpoint.Scope of Impact
/logs
endpoint./logs
endpoint will return responses processed by the presenter layer, ensuring consistent and properly formatted output.Particular Points to Check
Test
Schedule
11/23