The GitHub Actions job "Tests (AMD)" on 
airflow.git/fix-azure-vm-sensor-validation has succeeded.
Run started by GitHub user shahar1 (triggered by shahar1).

Head commit for run:
4e5a72550df168de8d41438224754c20c44c656a / Shahar Epstein 
<[email protected]>
Fail AzureVirtualMachineStateSensor fast on an invalid target_state

target_state is a template field, so the rendered value can only be checked at
run time. Checking it from poke() puts it inside the error handling of
BaseSensorOperator.execute(): under silent_fail the error is logged and treated
as "not ready yet", so a misconfigured sensor polls until its timeout (7 days by
default) instead of failing; under never_fail or soft_fail it becomes a skip, so
the sensor reports no failure at all and downstream tasks proceed.

Checking once in execute(), before the poll loop and before deferring, keeps the
run-time check the template field requires while restoring an immediate,
unambiguous failure.

Report URL: https://github.com/apache/airflow/actions/runs/30082605215

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to