Enhance orchestration configuration and documentation. Added `RUNTIME` variable to `.env.example`, updated `.gitignore` to exclude `openspec/` and `.cursor/`, and modified `README.md` to clarify queue naming conventions and runtime handling. Refactored activities to use synchronous database and email handling, improving performance and consistency. Updated test cases to reflect these changes and ensure compatibility with new activity definitions.
74 lines
1.7 KiB
Python
74 lines
1.7 KiB
Python
"""No-op Temporal workflows for managed scouter/laborious namespaces in E2E."""
|
|
|
|
from typing import Any
|
|
|
|
from temporalio import workflow
|
|
|
|
|
|
@workflow.defn(name='scouter')
|
|
class ScouterStub:
|
|
@workflow.run
|
|
async def run(self, _input_data: dict[str, Any]) -> None:
|
|
return None
|
|
|
|
|
|
@workflow.defn(name='pi_web_api_scouter')
|
|
class PiWebApiScouterStub:
|
|
@workflow.run
|
|
async def run(self, _input_data: dict[str, Any]) -> None:
|
|
return None
|
|
|
|
|
|
@workflow.defn(name='predictions_batch')
|
|
class PredictionsBatchStub:
|
|
@workflow.run
|
|
async def run(self, _input_data: dict[str, Any]) -> None:
|
|
return None
|
|
|
|
|
|
@workflow.defn(name='xgboost_predictions_batch')
|
|
class XgboostPredictionsBatchStub:
|
|
@workflow.run
|
|
async def run(self, _input_data: dict[str, Any]) -> None:
|
|
return None
|
|
|
|
|
|
@workflow.defn(name='drift')
|
|
class DriftStub:
|
|
@workflow.run
|
|
async def run(self, _input_data: dict[str, Any]) -> None:
|
|
return None
|
|
|
|
|
|
@workflow.defn(name='simple_metrics')
|
|
class SimpleMetricsStub:
|
|
@workflow.run
|
|
async def run(self, _input_data: dict[str, Any]) -> None:
|
|
return None
|
|
|
|
|
|
@workflow.defn(name='minimal_retrain')
|
|
class MinimalRetrainStub:
|
|
@workflow.run
|
|
async def run(self, _input_data: dict[str, Any]) -> None:
|
|
return None
|
|
|
|
|
|
@workflow.defn(name='xgboost_minimal_retrain')
|
|
class XgboostMinimalRetrainStub:
|
|
@workflow.run
|
|
async def run(self, _input_data: dict[str, Any]) -> None:
|
|
return None
|
|
|
|
|
|
STUB_WORKFLOW_CLASSES = [
|
|
ScouterStub,
|
|
PiWebApiScouterStub,
|
|
PredictionsBatchStub,
|
|
XgboostPredictionsBatchStub,
|
|
DriftStub,
|
|
SimpleMetricsStub,
|
|
MinimalRetrainStub,
|
|
XgboostMinimalRetrainStub,
|
|
]
|