acoustic-carpenter-78188
04/07/2026, 6:38 PMParameter class now allows the value to be None, enabling values to be supplied at serving time via parameter_values in flyte.with_servecontext. The new type attribute allows explicit parameter typing, and the documentation has been updated accordingly. [1] [2]
• Deployment-time validation in SerializableParameter.from_parameter ensures that all parameters have a value before deployment, raising a clear error if not.
• When an explicit type is provided, it overrides type inference, and setting a mount for file/directory types automatically enables downloading.
• A new helper, _ensure_dest_writable, checks that mount destinations for parameters are writable and provides informative errors if not.
• The parameter synchronization logic in sync_parameters now handles directory mounts for files more robustly and validates destination writability.
Testing Enhancements:
• Extensive new tests verify that app specs are considered different when parameters change (in value, name, or count), and that app replacement triggers updates only when necessary. [1] [2]
• Additional tests cover the new Parameter behaviors (such as allowing None values and explicit types), and serialization/deserialization roundtrips for parameters with explicit types and mounts. [1] [2] [3]
Documentation and Example Updates:
• A new example app, file_parameter_app.py, demonstrates running a Flyte task that produces a remote file and serving it through a FastAPI app using parameter mounts and environment variables.
These changes collectively make parameterized app development in Flyte more flexible, reliable, and user-friendly.
flyteorg/flyte-sdkacoustic-carpenter-78188
04/08/2026, 3:21 AMacoustic-carpenter-78188
04/08/2026, 3:21 AMacoustic-carpenter-78188
04/08/2026, 2:04 PM