tft_register_zit_downgrade_rebuild_handler

Function

Registers the callback function for repair rebuilding during downgrade with Processor.

For MindSpeed-LLM, the callback function has been adapted. For other frameworks, you need to ensure the security of the callback function.

Format

mindio_ttp.framework_ttp.tft_register_zit_downgrade_rebuild_handler(func: Callable, ctx = None)

Parameters

Parameter

Mandatory/Optional

Description

Value

func

Mandatory

Callback function of rebuild, which is used to rebuild repairs during downgrade.

The default timeout interval of the callback function execution is 180 seconds. If the execution times out, the process fails to be executed. You can use the environment variable TTP_NORMAL_ACTION_TIME_LIMIT to set the timeout interval.

The callback function cannot be left empty and has no return value. If the callback function fails to be executed, an exception is thrown.

ctx

Optional

Callback function context.

This parameter is left empty by default.

Return Value

No return value. If an error occurs, an error log is recorded and an exception is thrown.