File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -288,7 +288,10 @@ def register_agent(
288
288
store_name = store_name ,
289
289
key = store_key ,
290
290
value = json .dumps ({}),
291
- state_metadata = {"contentType" : "application/json" },
291
+ state_metadata = {
292
+ "contentType" : "application/json" ,
293
+ "partitionKey" : store_key ,
294
+ },
292
295
options = StateOptions (
293
296
concurrency = Concurrency .first_write ,
294
297
consistency = Consistency .strong ,
@@ -315,7 +318,10 @@ def register_agent(
315
318
operation_type = TransactionOperationType .upsert ,
316
319
)
317
320
],
318
- transactional_metadata = {"contentType" : "application/json" },
321
+ transactional_metadata = {
322
+ "contentType" : "application/json" ,
323
+ "partitionKey" : store_key ,
324
+ },
319
325
)
320
326
except Exception as e :
321
327
raise e
You can’t perform that action at this time.
0 commit comments