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:

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

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

    Returns

    annotated function