Skip to content

Commit

Permalink
Insert guard clause for workflow.upsert_search_attributes on empty in…
Browse files Browse the repository at this point in the history
…puts

Fix for temporalio#629
  • Loading branch information
accupham authored Sep 2, 2024
1 parent 4aef4bf commit 4fd5a34
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions temporalio/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -906,6 +906,8 @@ def upsert_search_attributes(
DEPRECATED and if used, result in invalid key types on the
typed_search_attributes property in the info.
"""
if not attributes:
return
temporalio.common._warn_on_deprecated_search_attributes(attributes)
_Runtime.current().workflow_upsert_search_attributes(attributes)

Expand Down

0 comments on commit 4fd5a34

Please sign in to comment.