Apps

An app is a long-running service that Flyte keeps up, rather than a job that runs to completion. Use an app when something needs to stay reachable at a URL: a dashboard, a REST API, a model endpoint, or an MCP server.

Apps are declared the same way tasks are. An AppEnvironment names the image, the port, and the scaling behavior, and the code inside it is an ordinary web application.

app = flyte.AppEnvironment(name="dashboard", image=..., port=8080)

Because apps and tasks live in the same project, an app can read what a task produced without moving data between systems, and a task can call an app it depends on.

Apps scale to zero when idle, so a rarely-used dashboard costs nothing between visits.