Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upsert_search_attribute does not insert new attributes #451

Closed
ndtretyak opened this issue Dec 21, 2023 · 1 comment
Closed

upsert_search_attribute does not insert new attributes #451

ndtretyak opened this issue Dec 21, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@ndtretyak
Copy link
Contributor

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

@ndtretyak ndtretyak added the bug Something isn't working label Dec 21, 2023
@ndtretyak
Copy link
Contributor Author

Fixed in #440

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant