0.26.0

Union plugin

Directory

Classes

Class Description
flyteplugins.union.ForkPlan What a fork of source_run would reuse, as of as_of.
flyteplugins.union.PlannedAction One source-run action, as a fork plan sees it.
flyteplugins.union.factory.Factory A set of builds.
flyteplugins.union.factory.TimeRange A trailing window, relative to the consumer’s own time value, ending at that value.
flyteplugins.union.io.ActionRef Provenance: the action (one task execution within a run) that produced a particular Volume version, plus the output slot it was returned as.
flyteplugins.union.io.BlockVolume A writable Volume whose content is one ext4 filesystem image.
flyteplugins.union.io.ROBlockVolume An immutable version of a BlockVolume – what its commit and finalize return, and what a downstream task receives.
flyteplugins.union.io.ROVolume Immutable, versioned volume — PRD §Core Concepts.
flyteplugins.union.io.RWVolume Mutable working copy — PRD §Core Concepts.
flyteplugins.union.io.Volume A persistent volume identified by its metadata index.
flyteplugins.union.remote.ApiKey Represents a Union API Key (OAuth Application).
flyteplugins.union.remote.Assignment Represents role/policy assignments for an identity.
flyteplugins.union.remote.Cluster Represents a Union cluster.
flyteplugins.union.remote.ClusterConfig The tracked ConfigMaps of a single cluster.
flyteplugins.union.remote.ClusterPool Represents a Union cluster pool — the configuration shared by its member clusters.
flyteplugins.union.remote.Environment One environment version with its full spec, scaling and per-cluster status snapshots.
flyteplugins.union.remote.EnvironmentVersion One environment version as returned by the list call: its summary and per-cluster summaries.
flyteplugins.union.remote.Member Represents a Union organization member (user or application).
flyteplugins.union.remote.MetricResult The result of querying one metric.
flyteplugins.union.remote.MetricSeries One time series of a metric result, e.g. one container or one GPU device.
flyteplugins.union.remote.Metrics Pod metrics of a task’s action attempt or of an app, as shown in the Union UI.
flyteplugins.union.remote.NodeGroup One declared node group of a cluster: a pool of nodes and the shape each node has.
flyteplugins.union.remote.NodeGroups A cluster’s declared node groups, as stored, with the generation they were read at.
flyteplugins.union.remote.Org A Union organization, with the limits and entitlements it runs with.
flyteplugins.union.remote.OrgLimitRow One limit or entitlement of an org: what it runs with, the tier default, and why they differ.
flyteplugins.union.remote.Policy Represents a Union RBAC Policy.
flyteplugins.union.remote.Queue Represents a Union scheduling queue.
flyteplugins.union.remote.Role Represents a Union RBAC Role.
flyteplugins.union.remote.SSHDebug Resolved SSH-into-task connect info for a running debug action.
flyteplugins.union.remote.Sandbox A sandbox session, as the platform has it.
flyteplugins.union.remote.SandboxRun One run of a sandbox: its first, or one a resume started.
flyteplugins.union.remote.SystemLogs Logs of the Union system components running on a cluster’s dataplane.
flyteplugins.union.remote.User Represents a Union user.
flyteplugins.union.remote.VolumeExplore A resolved Volume plus the IO to inspect and walk its lineage.
flyteplugins.union.remote.VolumeResolveError No (or ambiguous) Volume-typed value could be resolved on an action.
flyteplugins.union.sandbox.CommandResult A finished command: what Sandbox.run returns.
flyteplugins.union.sandbox.ConnectPhase What env.connect is doing now, for a caller that shows its progress (on_phase=).
flyteplugins.union.sandbox.FileEntry One entry from FileSystem.ls or FileSystem.stat.
flyteplugins.union.sandbox.FileSystem File access inside a sandbox (sb.fs).
flyteplugins.union.sandbox.Mount A block volume a session mounts: volumes={"/data": Mount(v, mode="rw")}.
flyteplugins.union.sandbox.MountedVolume A block volume a session mounts (sb.volumes["/ckpt"]): a private copy of volume, at path, read-only or read-write.
flyteplugins.union.sandbox.Network Outbound network for a sandbox.
flyteplugins.union.sandbox.Process A running command, from Sandbox.start.
flyteplugins.union.sandbox.ProcessError A command ended abnormally: the session failed or its stream broke.
flyteplugins.union.sandbox.ProcessUnsupported The sandbox cannot give a command what was asked for it: its node runs a version from before commands had a stdin or a terminal.
flyteplugins.union.sandbox.Sandbox A running sandbox session, from async with env.session("build") as sb.
flyteplugins.union.sandbox.SandboxCommandFailed A command run with sb.run(...) exited with a nonzero code (check is on by default).
flyteplugins.union.sandbox.SandboxCommandTimedOut A command ran past its timeout and was stopped.
flyteplugins.union.sandbox.SandboxEnvironment A sandbox definition: secrets, env vars, resources, network and lifetime.
flyteplugins.union.sandbox.SandboxNotFound There is no sandbox of that name, and the call (create=False) makes none.
flyteplugins.union.sandbox.SandboxSessionEnded A call into a sandbox failed because its session has ended: its microVM was lost (e.g. its node restarted), it ran past its maximum duration, or it was aborted.
flyteplugins.union.sandbox.SandboxSessionError A sandbox session could not be started, or ended before it was ready.
flyteplugins.union.sandbox.SandboxSnapshot A sandbox session’s disk, memory and processes at one instant (sb.snapshot(), sb.suspend()).
flyteplugins.union.sandbox.SandboxUsageError A sandbox session was used in a way that can’t work: started outside a task, with a flyte that has no sessions, or used after its async with block ended.
flyteplugins.union.sandbox.SandboxVolume A sandbox session’s disk at a commit (sb.commit(), sb.close(commit=True)).
flyteplugins.union.sandbox.ScratchVolume A session’s disk that stays on the node and ends with the session: env.session(name, volume=ScratchVolume()).
flyteplugins.union.sandbox.SessionStartup How long each step of starting a session took, in seconds (sb.startup).
flyteplugins.union.sandbox.SnapshotFuture A snapshot taken, from await sb.snapshot(wait=False): what it holds is fixed and its session runs on.
flyteplugins.union.sandbox.Tty A terminal for a command to run on (sb.start(command, tty=Tty(30, 120))).

Functions

Function Description
flyteplugins.union.debug() Launch a task, or relaunch an existing run, with ssh-into-task debug enabled.
flyteplugins.union.fork() Fork run run_name, replaying it with new code and/or inputs.
flyteplugins.union.fork_plan() Roughly what fork(run_name, ...) with these arguments would reuse, without forking.
flyteplugins.union.with_debugcontext() Like flyte.with_runcontext, but preconfigured for ssh-into-task debug.
flyteplugins.union.with_forkcontext() Like flyte.with_runcontext, but the returned runner can also fork(run_name, ...).
flyteplugins.union.factory.build() Name the artifact (or artifacts) one task call makes.
flyteplugins.union.factory.materialize() Start a run of <factory>.materialize and return the flyte.remote.Run.
flyteplugins.union.factory.on() Materialize when a source gets a new version, or on a schedule.
flyteplugins.union.factory.partition() Pass the instance’s value of dim to a task parameter.
flyteplugins.union.factory.serve() Name the app a factory ends in.
flyteplugins.union.factory.source() An artifact made outside this factory.
flyteplugins.union.io.allow_volumes() Enable Volume mounts in a task pod with zero privileges.
flyteplugins.union.io.with_local_flyteplugins() Package the locally checked-out flyteplugins-union (built to a wheel) and an optional local juicefs binary into base — for iterating on an unreleased plugin build against a real cluster.
flyteplugins.union.utils.with_local_flyteplugins_union() Layer the locally-built flyteplugins-union wheel onto img.

Packages

Package Description
flyteplugins.union Union SDK - Proprietary extensions for Flyte.
flyteplugins.union.factory Factories: a declared graph of partitioned artifacts the platform can materialize on demand.
flyteplugins.union.io Persistent, mountable Volume type for the Flyte SDK v2.
flyteplugins.union.remote Union remote control plane objects.
flyteplugins.union.sandbox Sandboxes for agents and other tasks that run untrusted code.
flyteplugins.union.utils Public utilities for flyteplugins.union.