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.

参见

task

Declare a task module contract.

load_module_task

Load and validate the task declared by a module.

build_taskdef

Convert 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')