Skip to content

upsert_search_attribute does not insert new attributes #451

Closed
@ndtretyak

Description

@ndtretyak

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions