add export job dotnet sample (pending next dts dp release for multi taskhubs support)#154
Open
YunchuWang wants to merge 1 commit intoAzure-Samples:mainfrom
Open
add export job dotnet sample (pending next dts dp release for multi taskhubs support)#154YunchuWang wants to merge 1 commit intoAzure-Samples:mainfrom
YunchuWang wants to merge 1 commit intoAzure-Samples:mainfrom
Conversation
greenie-msft
reviewed
Mar 2, 2026
| @@ -0,0 +1,115 @@ | |||
| # Export History Web App Sample | |||
|
|
|||
| This sample is a small ASP.NET Core web app that exposes a REST API for creating and managing Durable Task **export history jobs**. | |||
Collaborator
There was a problem hiding this comment.
@YunchuWang @torosent I think we should more clearly explain what this feature does and when it’s appropriate to use it. It took me some time to fully grasp what this sample is for.
At a high level, this feature moves orchestration data out of DTS and into a storage account of the customer's choosing. That unlocks several important benefits, such as longer data retention and reduced DTS storage costs, which would be helpful to call out explicitly.
Collaborator
There was a problem hiding this comment.
Yes. we need a doc for it
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add the Export History Web App sample for the .NET Durable Task SDK. This is an ASP.NET Core web app that exposes a REST API for creating and managing Durable Task export history jobs, using Durable Task Scheduler (Azure Managed) and Azure Blob Storage.
Does this introduce a breaking change?
No
Pull Request Type
sample
Please describe:
How to Test
Get the code:
Test the code:
Set the required environment variables (or update launchSettings.json):
DURABLE_TASK_CONNECTION_STRING — Durable Task Scheduler connection string
EXPORT_HISTORY_STORAGE_CONNECTION_STRING — Azure Storage connection string
EXPORT_HISTORY_CONTAINER_NAME — Blob container name (e.g. export-history)
Run the sample:
Use the included ExportHistoryWebApp.http file (with the VS Code REST Client extension) or curl to interact with the API at http://localhost:5009.
What to Check
Verify that the following are valid:
The project restores and builds successfully with dotnet build
The app starts and listens on http://localhost:5009
POST /export-jobs creates a new batch or continuous export job
GET /export-jobs/{id} retrieves an export job by ID
GET /export-jobs/list lists all export jobs (with optional query filters)
DELETE /export-jobs/{id} deletes an export job
The README accurately describes the sample, configuration, and API endpoints
The sample follows the same structure and conventions as other .NET samples in dotnet
Note: This sample depends on the Microsoft.DurableTask.ExportHistory NuGet package, which is pending publication (see microsoft/durabletask-dotnet PR).
Testing:
Local running all operations in sample pass against a dts scheduler with single taskhub.
there is a pending issue multi taskhubs export are not supported. pending next dts dp release.
https://msazure.visualstudio.com/One/_git/AAPT-DTMB/pullrequest/14904498