perago.PreGuardrailViolation#

exception perago.PreGuardrailViolation[源代码]#

Raised when pre-task workspace checks fail.

A pre-check failure means the downloaded workspace does not satisfy the task's required input shape. result_for_exception maps this subclass to FAILED_WITH_TERMINAL_ERROR because retrying the same invalid input should not re-run the task body.

参见

GuardrailViolation

Base class for workspace check failures.

check_guardrails

Evaluate configured workspace checks.

result_for_exception

Convert this exception to a terminal failed result.

Examples

>>> PreGuardrailViolation("raw/input.parquet is missing")
PreGuardrailViolation('raw/input.parquet is missing')