SIENTIAPDE-1445
Update requirements and enhance tests.ipynb functionality - Changed the dependency path for sientia-dataops-library in requirements.txt to a local directory. - Updated execution counts in tests.ipynb for better state management and added new code cells for retrieving web IDs from the PI Web API, improving data handling capabilities.
This commit is contained in:
@@ -102,7 +102,7 @@ class CoreScouter:
|
||||
if held_data == {}:
|
||||
return
|
||||
|
||||
await workflow.execute_activity_method(
|
||||
data_exported = await workflow.execute_activity_method(
|
||||
Activities.export_data_to_postgres,
|
||||
{
|
||||
**metadata,
|
||||
@@ -110,11 +110,15 @@ class CoreScouter:
|
||||
'table_name': input_data['table_name'],
|
||||
'data': held_data,
|
||||
'timestamp_conversion': {'column': 'timestamp', 'format': DATETIME_FORMAT_WITH_TZ},
|
||||
'on_conflict': 'ignore',
|
||||
},
|
||||
retry_policy=retry_policy,
|
||||
start_to_close_timeout=timedelta(seconds=60),
|
||||
)
|
||||
|
||||
if not data_exported:
|
||||
return
|
||||
|
||||
await workflow.execute_activity_method(
|
||||
Activities.write_metrics,
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user