perago.TaskDefinitionError#
- exception perago.TaskDefinitionError[源代码]#
Raised when a task module violates the Perago task contract.
Task definition errors are detected while loading, checking, or extracting a single-task module. They describe authoring-time contract problems such as unsupported function signatures, invalid workspace checks, or controls that cannot be represented in a Conductor TaskDef.
参见
taskDeclare a task module contract.
load_module_taskLoad and validate the task declared by a module.
build_taskdefConvert a valid task definition to a Conductor TaskDef.
Examples
>>> TaskDefinitionError("task module must define exactly one task") TaskDefinitionError('task module must define exactly one task')