SIENTIAPDE-1231
Refactor orchestrator activities and configuration files - Removed unused Temporal timeout environment variables from values.yaml. - Reorganized import statements in various activity files for better readability. - Updated logging messages to use consistent formatting across activities. - Enhanced test cases to ensure proper initialization and shutdown of orchestrator activities. - Improved overall code structure and readability by applying consistent formatting and style adjustments.
This commit is contained in:
@@ -6,19 +6,19 @@ orchestrator system including application health, email delivery,
|
||||
and workflow execution metrics.
|
||||
"""
|
||||
|
||||
from prometheus_client import Gauge, Counter
|
||||
from prometheus_client import Counter, Gauge
|
||||
|
||||
APP_UP = Gauge(
|
||||
"app_up",
|
||||
"Indicates if the application is running (1) or shutting down (0)",
|
||||
["pod_id"],
|
||||
'app_up',
|
||||
'Indicates if the application is running (1) or shutting down (0)',
|
||||
['pod_id'],
|
||||
)
|
||||
|
||||
CORE_LABELS = ["pod_id", "model_name", "pipeline_name"]
|
||||
CORE_LABELS = ['pod_id', 'model_name', 'pipeline_name']
|
||||
|
||||
|
||||
EMAIL_SENT_COUNT = Counter(
|
||||
"email_sent_count",
|
||||
"Number of emails sent",
|
||||
[*CORE_LABELS, "email_group"],
|
||||
'email_sent_count',
|
||||
'Number of emails sent',
|
||||
[*CORE_LABELS, 'email_group'],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user