cuddly-jelly-27016
05/14/2025, 12:12 AMStaticMetadata, MetadataOverride, and MetadataFinal using some simple, serializable format like JSON.
UX/UI
At registration time we can extract all the metadata of every task and create an StaticMetadata object.
At launch time we let users specify MetadataOverride through the following ways:
If using UI, in the "Launch Workflow" panel, we have an "Input" tab and a "Execution Parameter Override" tab. The latter tab, by default, shows the StaticMetadata but the fields are editable, which allows users to specify overrides of the metadata
If using flyte-cli, we add an option, e.g., --execution-parameter-override={"task1": {cache=false}} when launching an execution
Every MetadataOverride object is also stored in Flyteadmin, and is versioned with the execution id.
The StaticMetadata and MetadataOverride objects were merged by Flyteadmin to produce MetadataFinal and that is passed to the propeller
Propeller or plugin parses that MetadataFinal object and creates pod, talks to data catalog, etc., accordingly
In the console, we add an extra field/link in the header of the execution page, showing the MetadataOverride and/or MetadataFinal
#### Reproducibility
As far as reproducibility is concerned, we note from the above description that both the StaticMetadata and the MetadataOverride are versioned. StaticMetadata becomes available to Flyteadmin at workflow registration time because it comes with the workflow definition. An extra storage of this object is not required. This object is also inherently versioned and can be extracted from the registered workflow when needed.
MetadataOverride will be versioned differently than StaticMetadata. To enable the targeted high flexibility, we want to allow the users to associate each execution with one MetadataOverride object. The natural way to version MetadataOverride objects, therefore, is to version it with the execution's id. Due to this goal, we store the MetadataOverride object in Flyteadmin.
#### Flyteadmin APIs
https://gist.github.com/bnsblue/8499584ec7e1aacf4b43e81d9c50e0fb
#### FlyteIdl Protos
Additional context
This is a highly requested feature from multiple teams with Lyft
Is this a blocker for you to adopt Flyte
NA
flyteorg/flyte