<#1271 fix(reuse): key actor pool version on the c...
# flyte-github
a
#1271 fix(reuse): key actor pool version on the code-bundle path, not just its hash Pull request opened by EngHabu Problem Reusable/actor tasks can fail on relaunch or concurrent runs with:
Copy code
ValueError: Task TGZ does not match the configured TGZ tasks
  (fasttask worker-v2 executor/src/actor_environment.rs)
An actor pod pins to the first code bundle (tgz/pkl path) it loads and rejects any later task whose path differs. But the warm-pool routing key — the env "version" computed in
extract_unique_id_and_image
— included only
code_bundle.computed_version
(a content hash), not the uploaded bundle path. So whenever two bundles share a
computed_version
but resolve to different upload paths (e.g. a non-deterministic tarball, or a cached remote path paired with a freshly computed version), they collide on one pool and the pod rejects the second task — a hard failure. Fix Fold the bundle's `tgz`/`pkl` path into the version components, so the pool routing key matches the exact identifier the actor bridge pins on. This makes "same pool ⇒ same bundle path" an invariant, so a pod's pin always matches what's routed to it. • The env name is unchanged — no new task names in the UI; only the computed version differs across bundles. • Upload paths are content-addressed, so identical code still maps to one version and shares a warm pod (reuse preserved). Only genuinely different bundles split into separate pools — which the bridge requires anyway. Tests •
test_extract_unique_id_distinguishes_bundle_path
— same
computed_version
, different
tgz
(and
pkl
) ⇒ different id. •
test_extract_unique_id_stable_for_identical_bundle
— identical bundle ⇒ identical id (reuse preserved).
pytest tests/flyte/internal/runtime/test_reuse.py
→ 11 passed. 🤖 Generated with Claude Code flyteorg/flyte-sdk