Skip to content

Commit edeb051

Browse files
YunchuWangCopilot
andcommitted
Fix large payload setting names to match latest durabletask-dotnet main branch
Update host.json setting names from largePayloadStorageEnabled/largePayloadStorageThresholdBytes to payloadStorageEnabled/payloadStorageThresholdBytes to match the actual sample at Azure-Samples/Durable-Task-Scheduler. Update SDK option property name from ExternalizeThresholdBytes to ThresholdBytes to match the LargePayloadStorageOptions class in microsoft/durabletask-dotnet main branch. Co-authored-by: Copilot <[email protected]>
1 parent 517991d commit edeb051

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

articles/durable-task/scheduler/durable-task-scheduler-large-payloads.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,16 +80,16 @@ Then enable large payload storage in [host.json](../../azure-functions/durable-f
8080
"storageProvider": {
8181
"type": "azureManaged",
8282
"connectionStringName": "DTS_CONNECTION_STRING",
83-
"largePayloadStorageEnabled": true,
84-
"largePayloadStorageThresholdBytes": 900000
83+
"payloadStorageEnabled": true,
84+
"payloadStorageThresholdBytes": 900000
8585
},
8686
"hubName": "%TASKHUB_NAME%"
8787
}
8888
}
8989
}
9090
```
9191

92-
Set `largePayloadStorageThresholdBytes` below the Durable Task Scheduler message size boundary so the runtime externalizes payloads before they approach the limit.
92+
Set `payloadStorageThresholdBytes` below the Durable Task Scheduler message size boundary so the runtime externalizes payloads before they approach the limit.
9393

9494
Use the standard Durable Functions APIs in your orchestrator and activity code. The runtime automatically resolves blob references before `context.GetInput<T>()` and `context.CallActivityAsync<T>()` return data.
9595

@@ -144,7 +144,7 @@ Register an externalized payload store, choose a threshold, and enable payload r
144144
```csharp
145145
builder.Services.AddExternalizedPayloadStore(options =>
146146
{
147-
options.ExternalizeThresholdBytes = 900_000;
147+
options.ThresholdBytes = 900_000;
148148
options.ConnectionString = builder.Configuration["PAYLOAD_STORAGE_CONNECTION_STRING"]
149149
?? "UseDevelopmentStorage=true";
150150
options.ContainerName = "durabletask-payloads";
@@ -165,7 +165,7 @@ builder.Services.AddDurableTaskWorker(worker =>
165165

166166
If you use Microsoft Entra ID instead of a storage connection string, set `options.AccountUri` and `options.Credential`. The sample uses `DefaultAzureCredential` and can optionally target a user-assigned managed identity.
167167

168-
Keep `ExternalizeThresholdBytes` at or below `1,048,576` bytes. The sample uses `900,000` bytes so payloads are offloaded before they approach the 1 MiB scheduler message boundary.
168+
Keep `ThresholdBytes` at or below `1,048,576` bytes. The sample uses `900,000` bytes so payloads are offloaded before they approach the 1 MiB scheduler message boundary.
169169

170170
For an end-to-end .NET example, see the [Durable Task SDK large payload sample](https://github.com/Azure-Samples/Durable-Task-Scheduler/tree/main/samples/durable-task-sdks/dotnet/LargePayload).
171171

0 commit comments

Comments
 (0)