Skip to content

Commit

Permalink
Use RawInput for ContinueAsNew
Browse files Browse the repository at this point in the history
  • Loading branch information
jviau committed Oct 10, 2023
1 parent 273db1a commit 226d595
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## v1.0.5

### Microsoft.DurableTask.Worker

- Fix re-encoding of events when using `TaskOrchestrationContext.ContinueAsNew(preserveUnprocessedEvents: true)`

## v1.0.4

### Microsoft.DurableTask.Worker
Expand Down
2 changes: 1 addition & 1 deletion src/Abstractions/Abstractions.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Azure.DurableTask.Core" Version="2.11.1" />
<PackageReference Include="Microsoft.Azure.DurableTask.Core" Version="2.15.0" />
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="6.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="6.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="6.0.0" />
Expand Down
Empty file removed src/Client/Core/RELEASENOTES.md
Empty file.
Empty file removed src/Client/Grpc/RELEASENOTES.md
Empty file.
Empty file.
2 changes: 1 addition & 1 deletion src/Worker/Core/RELEASENOTES.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
- Fix handling of concurrent external events with the same name (https://github.com/microsoft/durabletask-dotnet/pull/194)
- Fix re-encoding of events when using `TaskOrchestrationContext.ContinueAsNew(preserveUnprocessedEvents: true)`
5 changes: 4 additions & 1 deletion src/Worker/Core/Shims/TaskOrchestrationContextWrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using System.Security.Cryptography;
using System.Text;
using DurableTask.Core;
using DurableTask.Core.Serializing.Internal;
using Microsoft.Extensions.Logging;

namespace Microsoft.DurableTask.Worker.Shims;
Expand Down Expand Up @@ -240,7 +241,9 @@ public override void ContinueAsNew(object? newInput = null, bool preserveUnproce
OrchestrationInstance instance = new() { InstanceId = this.InstanceId };
foreach ((string eventName, string eventPayload) in this.externalEventBuffer.TakeAll())
{
this.innerContext.SendEvent(instance, eventName, eventPayload);
#pragma warning disable CS0618 // Type or member is obsolete -- 'internal' usage.
this.innerContext.SendEvent(instance, eventName, new RawInput(eventPayload));
#pragma warning restore CS0618 // Type or member is obsolete
}
}
}
Expand Down
Empty file removed src/Worker/Grpc/RELEASENOTES.md
Empty file.

0 comments on commit 226d595

Please sign in to comment.