SIENTIAPDE-1445
Update API configuration in values.yaml and connectors_config.py; integrate PIWebAPIScouter into worker setup
This commit is contained in:
@@ -94,9 +94,9 @@ def build_api_config() -> dict[str, Any]:
|
||||
- auth_token: API authentication token (default: None)
|
||||
"""
|
||||
return {
|
||||
'base_url': getenv('API_BASE_URL', 'https://pi.example.com'),
|
||||
'auth_type': getenv('API_AUTH_TYPE', 'basic'),
|
||||
'auth_token': getenv('API_AUTH_TOKEN', None),
|
||||
'base_url': getenv('PI_WEB_API_BASE_URL', 'https://pi.example.com'),
|
||||
'auth_type': getenv('PI_WEB_API_AUTH_TYPE', 'basic'),
|
||||
'auth_token': getenv('PI_WEB_API_AUTH_TOKEN', None),
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -22,6 +22,7 @@ with workflow.unsafe.imports_passed_through():
|
||||
)
|
||||
from scouter.workflow.scouter import Scouter
|
||||
from scouter.workflow.sub_workflows.core_scouter import CoreScouter
|
||||
from scouter.workflow.pi_web_api_scouter import PIWebAPIScouter
|
||||
|
||||
# Environment configuration
|
||||
POD_ID = os.getenv('HOSTNAME', 'localhost')
|
||||
@@ -139,7 +140,21 @@ async def main():
|
||||
activities.write_metrics,
|
||||
activities.store_data_package,
|
||||
],
|
||||
)
|
||||
),
|
||||
prepare_worker(
|
||||
temporal_client=temporal_client,
|
||||
main_workflow=PIWebAPIScouter,
|
||||
other_workflows=[CoreScouter],
|
||||
activities=[
|
||||
activities.get_tag_values,
|
||||
activities.data_quality_gate,
|
||||
activities.aggregate_data,
|
||||
activities.group_and_hold_data,
|
||||
activities.export_data_to_postgres,
|
||||
activities.write_metrics,
|
||||
activities.store_data_package,
|
||||
],
|
||||
),
|
||||
]
|
||||
|
||||
handlers = []
|
||||
|
||||
Reference in New Issue
Block a user