The page you navigated to () does not exist, so we brought you to the closest page to it.
You have switched from the to the variant of this site. There is no equivalent of . We have taken you to the closest page in the variant.
1.16.16
flytekit.clis.sdk_in_container.serialize
Directory
Classes
| Class | Description |
|---|---|
SerializationMode |
Methods
| Method | Description |
|---|---|
serialize_all() |
This function will write to the folder specified the following protobuf types. |
Variables
| Property | Type | Description |
|---|---|---|
CTX_ENV |
str |
|
CTX_FLYTEKIT_VIRTUALENV_ROOT |
str |
|
CTX_IMAGE |
str |
|
CTX_LOCAL_SRC_ROOT |
str |
|
CTX_PACKAGES |
str |
|
CTX_PYTHON_INTERPRETER |
str |
Methods
serialize_all()
def serialize_all(
pkgs: typing.List[str],
local_source_root: typing.Optional[str],
folder: typing.Optional[str],
mode: typing.Optional[flytekit.clis.sdk_in_container.serialize.SerializationMode],
image_config: typing.Optional[flytekit.configuration.ImageConfig],
flytekit_virtualenv_root: typing.Optional[str],
python_interpreter: typing.Optional[str],
config_file: typing.Optional[str],
env: typing.Optional[typing.Dict[str, str]],
)This function will write to the folder specified the following protobuf types
flyteidl.admin.launch_plan_pb2.LaunchPlan
flyteidl.admin.workflow_pb2.WorkflowSpec
flyteidl.admin.task_pb2.TaskSpecThese can be inspected by calling (in the launch plan case)
flyte-cli parse-proto -f filename.pb -p flyteidl.admin.launch_plan_pb2.LaunchPlanSee {{< py_class_ref flytekit.models.core.identifier.ResourceType >}} to match the trailing index in the file name with the entity type.
| Parameter | Type | Description |
|---|---|---|
pkgs |
typing.List[str] |
Dot-delimited Python packages/subpackages to look into for serialization. |
local_source_root |
typing.Optional[str] |
Where to start looking for the code. |
folder |
typing.Optional[str] |
Where to write the output protobuf files |
mode |
typing.Optional[flytekit.clis.sdk_in_container.serialize.SerializationMode] |
Regular vs fast |
image_config |
typing.Optional[flytekit.configuration.ImageConfig] |
ImageConfig object to use |
flytekit_virtualenv_root |
typing.Optional[str] |
The full path of the virtual env in the container. |
python_interpreter |
typing.Optional[str] |
|
config_file |
typing.Optional[str] |
|
env |
typing.Optional[typing.Dict[str, str]] |