Commit Graph

56 Commits

Author SHA1 Message Date
vitor-aignosi
3a8eb04462 SIENTIAPDE-1172
fix: add conditional login for SMTP server and enhance test coverage

- Updated the Email class to conditionally log in to the SMTP server only if a sender password is provided, improving security.
- Enhanced test cases for the try_send_email method to cover various scenarios, including successful email sending and handling SMTP disconnections.
2025-07-30 09:25:02 -03:00
vitor-aignosi
ce380bd46d SIENTIAPDE-1172
fix: add timeout to SMTP connection for improved reliability

- Updated the SMTP connection in the Email class to include a timeout of 20 seconds, enhancing the robustness of email sending operations.
- Adjusted the reconnection logic to maintain consistent timeout settings during server initialization.
2025-07-30 08:55:59 -03:00
vitor-aignosi
e75e089b1b SIENTIAPDE-1172
refactor: rename send_email method to try_send_email and update parameter type

- Renamed the send_email method to try_send_email for clarity in its purpose.
- Changed the receivers parameter type from list[str] to str to simplify the method signature.
2025-07-30 08:43:48 -03:00
vitor-aignosi
0a5e137cc3 SIENTIAPDE-1172
SIENTIAPDE-1172
feat: update email configuration and enhance email sending functionality

- Changed EMAIL_SENDER in values.yaml to a new email address.
- Updated EMAIL_SENDER_PASSWORD key reference in values.yaml for improved security.
- Added PostgreSQL configuration parameters to values.yaml for database connectivity.
- Refactored Email class to include a new send_email method for better error handling during email transmission.
- Implemented reconnection logic for SMTP server disconnections to ensure reliable email delivery.
2025-07-30 08:29:11 -03:00
vitor-aignosi
263410b292 SIENTIAPDE-1172
feat: enhance notification handling in Formatters and SlotManager classes

- Introduced a mechanism to prevent duplicate notifications by tracking already added keys.
- Updated notification filtering logic to ensure unique notifications are processed for each receiver group.
- Improved overall notification management in orchestrator activities.
2025-07-29 12:13:08 -03:00
vitor-aignosi
6f6094b2ce SIENTIAPDE-1172
feat: enhance email notifications and orchestrator activities for reports

- Updated email HTML structure to clearly present errors, warnings, and info notifications.
- Introduced a new method in the Formatters class to filter notification reports based on group configurations.
- Enhanced the Reports workflow to integrate the new filtering functionality and manage notification packages effectively.
- Adjusted SlotManager to store timestamps with mail type specificity for better tracking.
- Improved test coverage for the new filtering functionality in the Formatters class.
2025-07-29 11:42:05 -03:00
vitor-aignosi
bc456cc8be SIENTIAPDE-1172
refactor: streamline email generation and enhance notification handling

- Updated email HTML structure to improve clarity and presentation of notifications.
- Enhanced notification generator to better manage execution counts and output formatting.
- Refactored Email class to improve error handling and logging during email sending.
- Adjusted EmailBuilder to efficiently process error, warning, and info models.
- Improved test coverage for email and notification functionalities to ensure reliability.
2025-07-29 10:25:31 -03:00
vitor-aignosi
c3ba2e4b5a SIENTIAPDE-1172
refactor: update email HTML structure and enhance notification generator

- Modified email HTML to reflect updated model names and error/warning messages.
- Adjusted notification generator to improve execution counts and streamline output handling.
- Refactored activities in orchestrator to correct parameter names and improve type hints for better clarity.
- Enhanced email builder to handle error, warning, and info models more efficiently.
2025-07-28 17:26:28 -03:00
vitor-aignosi
9bc238388a SIENTIAPDE-1172
feat: integrate email configuration and enhance orchestrator activities

- Added email configuration parameters to values.yaml for sender details and SMTP settings.
- Refactored Email class to correct parameter names and improve logging during initialization.
- Introduced build_email_config function to streamline email configuration retrieval.
- Updated worker.py to include email and Postgres configurations in the main orchestration process.
2025-07-28 16:12:22 -03:00
vitor-aignosi
ab657d0fda SIENTIAPDE-1172
feat: enhance email and slot manager activities with new filtering and caching functionalities

- Updated Email class to improve attachment handling and logging.
- Refactored Formatters class to process notifications more effectively by grouping them based on their configurations.
- Introduced new methods in SlotManager for filtering notification alerts and storing notification cache.
- Enhanced Alerts workflow to integrate new filtering and caching activities.
- Added tests for new functionalities in SlotManager and Formatters classes to ensure reliability.
2025-07-28 15:07:09 -03:00
vitor-aignosi
2a5534cf64 SIENTIAPDE-1172
feat: enhance orchestrator activities with new email and Postgres integrations

- Added Email and Postgres classes to the Activities class for improved functionality.
- Introduced new methods in MongoDB and SlotManager for loading and managing data.
- Updated requirements.txt to include jinja2.
- Added new formatting activity for log reports in Formatters class.
- Enhanced test coverage for MongoDB and SlotManager activities.
2025-07-25 16:03:39 -03:00
vitor-aignosi
66e9cf58e4 SIENTIAPDE-1171
SIENTIAPDE-1171 feat: add minimal retrain schedule configuration to samples.json and update formatters.py

- Added a new schedule configuration for the minimal retrain pipeline in samples.json.
- Updated the Formatters class in formatters.py to handle the new minimal retrain workflow type, integrating the minimal_retrain function for streamlined processing.
2025-07-23 12:51:55 -03:00
vitor-aignosi
2317bd404b SIENTIAPDE-1166
fix: add missing newline in MongoDB class for improved readability
2025-07-23 07:45:51 -03:00
vitor-aignosi
4905e61214 SIENTIAPDE-1166
feat: add TTL index functionality to MongoDB activities and update requirements

- Updated MongoDB class to accept TTL index duration in seconds.
- Implemented create_collection_with_ttl_index method to create collections with TTL indexes.
- Added environment variable for TTL index duration in connectors_config.
- Updated tests to cover new TTL index functionality and ensure proper behavior.
- Bumped sientia-dataops-library version to 1.3.4 in requirements.txt.
2025-07-22 15:09:15 -03:00
vitor-aignosi
37f4e6cf59 SIENTIAPDE-1151
fix: update GITHUB_BRANCH in values.yaml and ensure error messages are converted to strings in formatters.py for improved notification clarity
2025-07-18 09:49:55 -03:00
vitor-aignosi
92fbb704f5 SIENTIAPDE-1151
refactor: enhance error handling in build_tag_config and slot processing to include notifications for missing servers
2025-07-18 09:45:42 -03:00
vitor-aignosi
7c92bd2584 SIENTIAPDE-1163
refactor: enhance logging in activities to include metadata for improved context in notifications and error handling
2025-07-17 15:27:58 -03:00
vitor-aignosi
d60062af74 SIENTIAPDE-1163
refactor: update MongoDB notification IDs for error handling in activities; add tests for error scenarios in MongoDB and TemporalManager activities to ensure proper notification sending on failures
2025-07-16 15:18:49 -03:00
vitor-aignosi
b67d23da1f SIENTIAPDE-1163
refactor: update notification handling in activities to include metadata in notifications, enhancing context for error reporting and success messages; update requirements to use version 1.3.0 of the sientia-dataops-library
2025-07-16 13:14:16 -03:00
vitor-aignosi
2fa3a74bcc SIENTIAPDE-1150
refactor: update notification handler imports to use CoreNotificationHandler across activities and worker, enhancing consistency in notification management
2025-07-16 09:37:50 -03:00
vitor-aignosi
2533ea882f SIENTIAPDE-1150
refactor: update logging in Couchbase activity to use f-strings for improved readability; modify orchestration workflow to conditionally execute report handlers and replace method calls for consistency
2025-07-15 10:03:04 -03:00
vitor-aignosi
8d9381049a SIENTIAPDE-1150
refactor: add debug logging for schedule comparison in formatters, enhancing traceability of updated_at timestamp checks
2025-07-14 17:01:50 -03:00
vitor-aignosi
a4fb7d406b SIENTIAPDE-1150
refactor: enhance schedule configuration in formatters to include updated_at timestamps for scouter and predictions_batch pipelines, improving state management
2025-07-14 16:52:45 -03:00
vitor-aignosi
29469ede72 SIENTIAPDE-1150
refactor: update samples.json to change server_id from 'default_server' to '1' for multiple tags; add 'active' and 'updated_at' fields for better state management in orchestration
2025-07-14 16:45:22 -03:00
vitor-aignosi
7f162a7d4e SIENTIAPDE-1150
refactor: streamline MongoDB activity methods to improve readability and maintainability; replace inline query construction with variable assignments for updated, created, and deleted pipelines
2025-07-14 16:16:29 -03:00
vitor-aignosi
f823d1813f SIENTIAPDE-1150
refactor: restructure services in values.yaml to separate API and OPC configurations; update mongo_db.py to import datetime correctly and enhance readability
2025-07-14 16:14:27 -03:00
vitor-aignosi
0fd631a029 SIENTIAPDE-1150
SIENTIAPDE-1150: enhance MongoDB activities to filter successful pipelines; update orchestration workflow to include timestamp management for updated, created, and deleted pipelines; adjust tests to reflect new success criteria
2025-07-14 16:10:51 -03:00
vitor-aignosi
b3069c8a58 SIENTIAPDE-1150
chore: update image tag to 0.2.4 in values.yaml; refactor logging in slot_manager and temporal_manager for improved readability; modify MongoDB and Redis configurations for better defaults; enhance worker.py with new activities and error handling
2025-07-14 13:42:10 -03:00
vitor-aignosi
43206b578d SIENTIAPDE-1150
fix: implement schedule normalization and timestamp management in MongoDB activities, enhance orchestration workflow with new formatting and normalization methods
2025-07-14 13:00:46 -03:00
vitor-aignosi
9821b052ae SIENTIAPDE-1148
fix: implement compare_configs method in formatters.py to streamline schedule comparison and update handling
2025-07-11 16:30:09 -03:00
vitor-aignosi
89c769998f SIENTIAPDE-1148
fix: update schedule handling in temporal_manager and formatters to support multiple namespaces, enhance test coverage, and improve configuration handling
2025-07-11 16:22:19 -03:00
vitor-aignosi
0b0bb4bd45 SIENTIAPDE-1148
refactor: remove unused prepare_activity method from Activities class and clean up worker.py activity list
2025-07-11 12:35:36 -03:00
vitor-aignosi
5278159507 SIENTIAPDE-1148
fix: add formatting comments and improve readability in update_schedule function of temporal_manager.py
2025-07-11 12:34:57 -03:00
vitor-aignosi
dc84b152e5 SIENTIAPDE-1148
fix: update execution count to null in test.ipynb and consolidate search-attribute creation commands for multiple namespaces
2025-07-11 12:02:04 -03:00
vitor-aignosi
f3d9c1d685 SIENTIAPDE-1148
fix: improve error handling in temporal_manager.py by ensuring schedule_handles defaults to None and updating error messages for clarity
2025-07-11 11:04:30 -03:00
vitor-aignosi
7ad814408d SIENTIAPDE-1148
chore: add debug logging for schedule handles in temporal_manager.py to enhance visibility during orchestration
2025-07-11 10:57:32 -03:00
vitor-aignosi
25ec695323 SIENTIAPDE-1148
fix: enhance error messages in temporal_manager.py to include client and handle details for better debugging
2025-07-11 10:48:24 -03:00
vitor-aignosi
31a1d5bf4e SIENTIAPDE-1148
refactor: update Temporal configuration keys in activities.py and temporal_manager.py for consistency and clarity
2025-07-11 10:44:26 -03:00
vitor-aignosi
7279192343 SIENTIAPDE-1148
refactor: streamline Temporal connection logic in temporal_manager.py and remove redundant logging in worker.py
2025-07-11 10:42:28 -03:00
vitor-aignosi
96af810755 SIENTIAPDE-1148
feat: add logging for Temporal namespace connection in temporal_manager.py
2025-07-11 10:39:08 -03:00
vitor-aignosi
7f9efa579a SIENTIAPDE-1148
refactor: update temporal configuration and refactor Activities class to support multiple namespaces for improved orchestration
2025-07-11 10:34:40 -03:00
vitor-aignosi
dfd77c1768 SIENTIAPDE-1141
fix: set RPC timeout to 60 seconds in temporal_manager.py for improved schedule description handling
2025-07-10 16:32:58 -03:00
vitor-aignosi
351fce905a SIENTIAPDE-1141
fix: increase sleep duration in temporal_manager.py to improve schedule processing efficiency
2025-07-10 16:29:01 -03:00
vitor-aignosi
861cfde9ef SIENTIAPDE-1141
fix: adjust execution counts and reduce sleep duration in test.ipynb and temporal_manager.py for improved performance
2025-07-10 15:42:38 -03:00
vitor-aignosi
68c7e2cf3b SIENTIAPDE-1141
fix: increase sleep duration in temporal_manager to enhance schedule processing efficiency
2025-07-09 12:50:26 -03:00
vitor-aignosi
545929c618 SIENTIAPDE-1141
feat: add asynchronous sleep in temporal_manager to improve schedule processing
2025-07-09 12:33:12 -03:00
vitor-aignosi
9d63647cf1 SIENTIAPDE-1141
Update GITHUB_BRANCH in values.yaml and enhance debug logging in temporal_manager.py
2025-07-09 12:24:27 -03:00
vitor-aignosi
a173f4d451 SIENTIAPDE-1141
Update GITHUB_BRANCH in values.yaml and add debug logging for schedule ID in temporal_manager.py
2025-07-09 12:18:57 -03:00
vitor-aignosi
f7b73618d8 SIENTIAPDE-1107
feat: implement MongoDB integration with clear_mongo_id function and related tests
2025-06-16 16:01:20 -03:00
vitor-aignosi
3445c7cdf9 SIENTIAPDE-1107
fix: update image tag and environment variables for MongoDB integration
2025-06-16 12:36:05 -03:00