You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TaskOrchestrationContext has no input when using Microsoft.Azure.Functions.Worker.Extensions.DurableTask 1.0.3.
1.0.2 does not have this issue.
public static class Trigger
{
[Function("Trigger")]
public static async Task Run([HttpTrigger(AuthorizationLevel.Anonymous)] HttpRequestData req, [DurableClient] DurableTaskClient durableClient)
{
await durableClient.ScheduleNewOrchestrationInstanceAsync("RunOrchestration", input: DateTimeOffset.UtcNow.ToString());
}
[Function("RunOrchestration")]
public static Task RunOrchestration([OrchestrationTrigger] TaskOrchestrationContext context)
{
var input = context.GetInput<String>();
Console.WriteLine(Assembly.GetAssembly(typeof(TaskOrchestrationContext)).GetName().Version);
if (input is null)
Console.WriteLine("INPUT IS NULL");
else
Console.WriteLine($"INPUT OK: {input}");
return Task.CompletedTask;
}
}
Output 1.0.2:
[2023-09-12T00:02:31.323Z] Worker process started and initialized.
[2023-09-12T00:02:33.773Z] Host lock lease acquired by instance ID '0000000000000000000000005732CFD6'.
[2023-09-12T00:02:34.424Z] Executing 'Functions.Trigger' (Reason='This function was programmatically called via the host APIs.', Id=7a745881-ef15-47b8-be58-58185cfcc4f6)
[2023-09-12T00:02:34.578Z] Scheduling new RunOrchestration orchestration with instance ID '2174d4fc7b8f4241a8b6d2c9367408ab' and 32 bytes of input data.
[2023-09-12T00:02:34.859Z] Executed 'Functions.Trigger' (Succeeded, Id=7a745881-ef15-47b8-be58-58185cfcc4f6, Duration=448ms)
[2023-09-12T00:02:36.989Z] Executing 'Functions.RunOrchestration' (Reason='(null)', Id=b765d55e-62ba-4305-9474-321def0c3b58)
[2023-09-12T00:02:37.077Z] 1.0.2.0
[2023-09-12T00:02:37.077Z] INPUT OK: 2023/09/12 0:02:34 +00:00
[2023-09-12T00:02:37.090Z] Executed 'Functions.RunOrchestration' (Succeeded, Id=b765d55e-62ba-4305-9474-321def0c3b58, Duration=110ms)
Output 1.0.3:
[2023-09-12T00:02:03.360Z] Worker process started and initialized.
[2023-09-12T00:02:05.625Z] Host lock lease acquired by instance ID '0000000000000000000000005732CFD6'.
[2023-09-12T00:02:07.062Z] Executing 'Functions.Trigger' (Reason='This function was programmatically called via the host APIs.', Id=bc8ac064-9874-484b-b803-9cec8a79deb9)
[2023-09-12T00:02:07.218Z] Scheduling new RunOrchestration orchestration with instance ID '540446d602064c42a8bb821da736f5cf' and 32 bytes of input data.
[2023-09-12T00:02:07.500Z] Executed 'Functions.Trigger' (Succeeded, Id=bc8ac064-9874-484b-b803-9cec8a79deb9, Duration=452ms)
[2023-09-12T00:02:09.044Z] Executing 'Functions.RunOrchestration' (Reason='(null)', Id=b2fc1244-d5f5-493c-b9b1-c406c5dadc69)
[2023-09-12T00:02:09.125Z] 1.0.3.0
[2023-09-12T00:02:09.126Z] INPUT IS NULL
[2023-09-12T00:02:09.146Z] Executed 'Functions.RunOrchestration' (Succeeded, Id=b2fc1244-d5f5-493c-b9b1-c406c5dadc69, Duration=110ms)
I have identified the issue and have a fix out. Will release an updated package by EOD. You won't need to update your project when it is released, just re-build and the newer WebJobs extension should be pulled in (we use a glob of 2.11.*, so it should auto pick up the newer version)
TaskOrchestrationContext has no input when using Microsoft.Azure.Functions.Worker.Extensions.DurableTask 1.0.3.
1.0.2 does not have this issue.
Output 1.0.2:
Output 1.0.3:
This project referencing:
and Microsoft.Azure.Functions.Worker.Extensions.DurableTask Version "1.0.2" or "1.0.3".
The text was updated successfully, but these errors were encountered: