-
Notifications
You must be signed in to change notification settings - Fork 52
Description
Hello,
Currently developing durable functions using the net7 isolated process. I came across this error. It happens irregularly but it happens when I call the method await Task.Delay(120000) inside a transient service and set the delay for 2 minutes. The purpose of doing this was to simulate an http call that takes roughly 2 minutes to execute.
It seems to me that when this await Task.Delay(120000) is initiated, for some reason, the activity function that calls the method in the service that has this just quits abruptly and indicates the Task failed, not sure why. I have never come across this type of error before when developing azure functions in the past.
I have linked the repo here
You may have to make a http request to this url http://localhost:7003/api/ProcessVideoStarter either (get or post request) it supports both. It takes in a query parameter of a video name (e.g. ?video=example.mp4)
Here is an example
GET http://localhost:7003/api/ProcessVideoStarter?video=example.mp4
Outermost Exception
StackTrace:
at Microsoft.DurableTask.Worker.Shims.TaskOrchestrationContextWrapper.d__25`1.MoveNext()
at VideoProcessor.OrchestratorFunctions.d__1.MoveNext() in
C:\Users\pschubert\source\repos\VideoProcessor\VideoProcessor\OrchestratorFunctions.cs:line 39
Message
Task 'ExtractThumbnail' (#1) failed with an unhandled exception: Exception while executing function: Functions.ExtractThumbnail
Failure Details
Source
Microsoft.DurableTask.Worker
Name
EqualityContract = {Name = "TaskFailureDetails" FullName = "Microsoft.DurableTask.TaskFailureDetails"}
ErrorMessage
"Exception while executing function: Functions.ExtractThumbnail"
ErrorType
"Microsoft.Azure.WebJobs.Host.FunctionInvocationException
StackTrace
at Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.ExecuteWithLoggingAsync(IFunctionInstanceEx
instance, FunctionStartedMessage message, FunctionInstanceLogEntry instanceLogEntry, ParameterHelper
parameterHelper, ILogger logger, CancellationToken cancellationToken) in C:\projects\azure-webjobs-sdk-
rqm4t\src\Microsoft.Azure.WebJobs.Host\Executors\FunctionExecutor.cs:line 352
at Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.TryExecuteAsync(IFunctionInstance functionInstance,
CancellationToken cancellationToken) in C:\projects\azure-webjobs-sdk-
rqm4t\src\Microsoft.Azure.WebJobs.Host\Executors\FunctionExecutor.cs:line 108
InnermostException
Source
DurableTask.Core
Message
Exception of type 'DurableTask.Core.Exceptions.TaskFailedException' was thrown.
StackTrace
at DurableTask.Core.TaskOrchestrationContext.d__21.MoveNext()
at DurableTask.Core.TaskOrchestrationContext.d__201.MoveNext() at DurableTask.Core.TaskOrchestrationContext.<ScheduleTask>d__191.MoveNext()
at DurableTask.Core.RetryInterceptor1.<Invoke>d__4.MoveNext() at DurableTask.Core.RetryInterceptor1.d__4.MoveNext()
at Microsoft.DurableTask.Worker.Shims.TaskOrchestrationContextWrapper.d__25`1.MoveNext()
Failure Details
Source
Microsoft.DurableTask.Worker
Name
EqualityContract = {Name = "TaskFailureDetails" FullName = "Microsoft.DurableTask.TaskFailureDetails"}
ErrorMessage
Exception while executing function: Functions.ExtractThumbnail
ErrorType
Microsoft.Azure.WebJobs.Host.FunctionInvocationException
StackTrace
at Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.ExecuteWithLoggingAsync(IFunctionInstanceEx
instance, FunctionStartedMessage message, FunctionInstanceLogEntry instanceLogEntry, ParameterHelper
parameterHelper, ILogger logger, CancellationToken cancellationToken) in C:\projects\azure-webjobs-sdk-
rqm4t\src\Microsoft.Azure.WebJobs.Host\Executors\FunctionExecutor.cs:line 352
at Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.TryExecuteAsync(IFunctionInstance
functionInstance, CancellationToken cancellationToken) in C:\projects\azure-webjobs-sdk-
rqm4t\src\Microsoft.Azure.WebJobs.Host\Executors\FunctionExecutor.cs:line 108