jina.orchestrate.flow.builder module#

jina.orchestrate.flow.builder.allowed_levels(levels)[source]#

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

Example:

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

levels (List[FlowBuildLevel]) – required build level to run this function.

Returns:

annotated function