sdk-python icon indicating copy to clipboard operation
sdk-python copied to clipboard

Insert guard clause for workflow.upsert_search_attributes on empty inputs

Open accupham opened this issue 5 months ago • 4 comments

Fix for https://github.com/temporalio/sdk-python/issues/629

What was changed

Guard clause on workflow.upsert_search_attributes so SDK doesn't crash on empty input.

Why?

Spent 5 hours debugging an inscrutable error message.

Checklist

  1. Closes 629

  2. How was this tested: Pass empty list into upsert_search_attributes in a workflow.

  3. Any docs updates needed? No

accupham avatar Sep 02 '24 22:09 accupham