run_flow_model
Applicability
Product |
Supported |
|---|---|
√ |
|
√ |
|
x |
|
x |
|
x |
Function Description
Runs a specified model synchronously.
Prototype
1 | run_flow_model(self, model_key:str, input_msgs: List[FlowMsg], timeout: int) -> Tuple[int, FlowMsg] |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
model_key |
Input |
Specified model key. When C++ is used to develop DataFlow, the value of this parameter must be the same as that of name specified in AddInvokedClosure. |
input_msgs |
Input |
Input for the model. |
timeout |
Input |
Model execution waiting timeout, in ms. The value -1 means no timeout limit. |
Returns
- 0: success
- Other values: failure. For details, see UDF Error Codes.
Exception Handling
None
Constraints
None
Parent topic: Class MetaRunContext