SIENTIAPDE-2212
SIENTIAPDE-2212-drift-janela-e-chunk-period: Remove default 1-minute margin from drift window calculation. The default interval now directly matches the frequency, ensuring consecutive windows do not overlap.
This commit is contained in:
@@ -59,7 +59,7 @@ back to `frequency`.
|
||||
### 1.8.1 Drift window and chunk_period
|
||||
|
||||
Two `drift` pipelines on `frequency='1m'`: one without `interval_minutes` and with an invalid
|
||||
`chunk_period='hour'` → workflow input `interval=2` (frequency + 1-minute margin),
|
||||
`chunk_period='hour'` → workflow input `interval=1` (frequency, no overlap),
|
||||
`chunk_period='min'` and exactly one `DRIFT_CHUNK_PERIOD_INVALID` notification; one with
|
||||
`interval_minutes=60` and `chunk_period='s'` → both forwarded unchanged, no warning
|
||||
(SIENTIAPDE-2212).
|
||||
|
||||
@@ -336,7 +336,7 @@ async def test_scenario_1_8_1_drift_window_and_chunk_period(
|
||||
redis_client: Redis,
|
||||
notification_handler,
|
||||
):
|
||||
"""1.8.1: Drift window defaults to frequency + 1 min margin; invalid chunk_period warns and falls back."""
|
||||
"""1.8.1: Drift window defaults to frequency; invalid chunk_period warns and falls back."""
|
||||
scenario = load_scenario_input('orchestrator_drift_window')
|
||||
_apply_orchestrator_seeds(scenario, mongo_uri, redis_client)
|
||||
|
||||
@@ -348,7 +348,7 @@ async def test_scenario_1_8_1_drift_window_and_chunk_period(
|
||||
)
|
||||
|
||||
default = await _schedule_input(temporal_host, 'model-dr-drift-default')
|
||||
assert default['interval'] == 2
|
||||
assert default['interval'] == 1
|
||||
assert default['chunk_period'] == 'min'
|
||||
assert default['chunk_period_configured'] == 'hour'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user