jina.flow.builder

jina.flow.builder.build_required(required_level)[source]

Annotate a function so that it requires certain build level to run.

Example:

@build_required(FlowBuildLevel.RUNTIME)
def foo():
    print(1)
Parameters

required_level (FlowBuildLevel) – required build level to run this function.

Returns

annotated function