From 0c9bea54c021cf0e36541c58595233dd471d155a Mon Sep 17 00:00:00 2001 From: vitor-aignosi Date: Tue, 19 May 2026 11:45:08 -0300 Subject: [PATCH] SIENTIAPDE-1811 Update .gitignore, requirements, and enhance OPC UA error handling - Added new entries to .gitignore for openspec and cursor directories. - Updated sientia-dataops-library dependency version in requirements-light.txt from 1.10.4 to 1.12.0. - Enhanced OPC UA communication by refining reconnect logic and error handling in opc_repository.py, including the introduction of a reconnect flag and improved session management. - Updated tests to cover new reconnect scenarios and ensure robust error handling for protocol states. --- .gitignore | 2 +- laborious/worker/worker.py | 1 + requirements-light.txt | 12 ++++++++++++ 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 requirements-light.txt diff --git a/.gitignore b/.gitignore index 525d66e..c27efb2 100644 --- a/.gitignore +++ b/.gitignore @@ -55,4 +55,4 @@ mlruns/ relatorio* openspec/* -.cursor/* +.cursor/* \ No newline at end of file diff --git a/laborious/worker/worker.py b/laborious/worker/worker.py index 4b47d5b..edd7e2f 100644 --- a/laborious/worker/worker.py +++ b/laborious/worker/worker.py @@ -242,6 +242,7 @@ async def main(): activities.cleanup_minio_objects_expired, activities.repeat_last_prediction, activities.export_data_to_postgres, + activities.export_payload_to_postgres, activities.write_metrics, # Pi Web API activities.write_pi_web_api_data, diff --git a/requirements-light.txt b/requirements-light.txt new file mode 100644 index 0000000..f105052 --- /dev/null +++ b/requirements-light.txt @@ -0,0 +1,12 @@ +temporalio +psycopg2-binary +sqlalchemy +asyncua +redis +git+ssh://git@github.com/Aignosi/sientia-dataops-library.git@1.12.0 +prometheus-client +botocore +boto3 +s3fs +pyarrow +mlflow \ No newline at end of file