acoustic-carpenter-78188
06/26/2026, 11:00 PMmax_action_concurrency on RunSpec when explicitly provided
Pull request opened by virchan
Issue
Discovered when running the hello.py example from Quickstart with DevBox:
>> flyte start devbox
>> flyte run hello.py mainExecution failed: Protocol message RunSpec has no "max_action_concurrency" field. The root cause is that my DevBox image was built before d5dd75c, so the older
RunSpec does not recognise the max_action_concurrency field.
Currently in main, the SDK always passes max_action_concurrency=self._max_action_concurrency or 0 in RunSpec. When the user doesn't set it, it falls back to 0, and the old backend rejects it every time.
Fix
Remove max_action_concurrency from the RunSpec constructor and set it conditionally afterwards, consistent with the else branch:
flyte-sdk/src/flyte/_run.py
Lines 439 to 440 in</flyteorg/flyte-sdk/commit/00664448d4afb992eb454ae2f0efe2651954d2de|0066444>
| if self._max_action_concurrency: |
| -------------------------------------------------------------- |
| run_spec.max_action_concurrency = self._max_action_concurrency |
This makes the SDK backward-compatible with any Flyte backend that predates the field. Updating the DevBox image would also resolve the immediate error, but would leave the SDK incorrectly sending a default 0 for a field the user never set.
Updates:
The root cause turns out to be an outdated version of flyteidl2. Updating flyteidl2 should work.
flyteorg/flyte-sdkacoustic-carpenter-78188
06/29/2026, 7:43 PM