flyte icon indicating copy to clipboard operation
flyte copied to clipboard

Raw ContainerTask without outputs fails with MaxSystemFailuresExceeded after succeeding

Open mitja-kleider opened this issue 1 week ago • 1 comments

A raw ContainerTask that declares no outputs fails once its pod exits 0:

MaxSystemFailuresExceeded: plugin "pod" failed with system error 4 times: failed to read data from dataDir [s3://.../<action>/1/outputs.pb] ... not found

On success, checkResourcePhase in executor/pkg/plugin/k8s/plugin_manager.go copies the outputs with tCtx.OutputWriter().Put, and the RemoteFileOutputWriter behind it reads outputs.pb unconditionally. Nothing writes that file for such a task: co-pilot adds its uploader only when the interface declares outputs (AddCoPilotToPod), and the container itself has no reason to. The read error comes back as a system error, so the executor reconciles the same succeeded pod until it gives up; no new pod is started.

Python tasks don't hit this because the SDK always uploads an outputs.pb, even an empty one. Flyte 1 didn't either: propeller's ValidateOutput only reads outputs when the interface declares some.

Seen on v2.0.55 with flyte SDK 2.13.4, with data_loading both on and off.

mitja-kleider avatar Nov 23 '26 10:11 mitja-kleider

It seems likely this is a backend bug: the SDK returns successfully without uploading outputs when a task has no outputs, while a task with outputs uploads them. That matches the reported missing outputs.pb failure, but the supplied sources don’t document the executor’s RemoteFileOutputWriter behavior or a fix. Task runner

Would you like more detail on the likely failure path or possible fixes?

Sources:


This is an AI-generated response and your feedback is appreciated! Please leave a 👍 if this is helpful and 👎 if it is not.

Mention @herald to ask follow-up questions. See runllm.com for more!

runllm avatar Nov 23 '26 10:11 runllm