<#7496 fix(flyteadmin): populate ErrorKind/ErrorCo...
# flyte-github
a
#7496 fix(flyteadmin): populate ErrorKind/ErrorCode columns for accept-time execution failures Pull request opened by 1fanwang Why are the changes needed? FlyteAdmin keeps an execution's error kind and code in dedicated indexed columns so operators can query and alert on failures without unpacking each closure blob. The event path fills them — but an execution that fails at creation time, when the workflow executor rejects it before it starts, lands as
FAILED
with the error only inside the closure. Any alert that filters on the error-kind column silently misses those. What changes were proposed in this pull request? Populate the error-kind and error-code columns when an execution is created already-failed, matching what the event path does. Successful executions leave them empty as before. How was this patch tested? Extended
TestCreateExecutionModel
— success leaves the columns nil; the unknown / invalid-argument / internal cases assert they match the failure's kind and code. Also end-to-end against a running flyteadmin with the executor pointed at an unreachable cluster so creation fails at accept time: the stock binary leaves `error_kind`/`error_code`
NULL
on the failed row, this PR writes
SYSTEM
/
Internal
. Labels fixed Check all the applicable boxes • I updated the documentation accordingly. • All new and existing tests passed. • All commits are signed-off. flyteorg/flyte