Closed
Description
Describe the bug
Adding new SearchAttribute using workflow.upsert_search_attribute
fails with the StopIteration
error here since this list contains only previously set attributes.
Adding new SearchAttribute via new typed API raises the same error here.
Minimal Reproduction
Start this workflow without SomeKey
in the initial SearchAttributes set.
@workflow.defn
class TestWorkflow:
@workflow.run
async def run(self):
workflow.upsert_search_attributes({
"SomeKey": [True],
})
Environment/Versions
Works fine in SDK 1.3.0 but fails in 1.4.0