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
We updated to the latest version of the durable task extensions for azure functions. Our durable entities run now in a dotnet-isolated function, at least at the staging environment.
Seems to work good, so far.
But we encountered some odd exceptions, I think it has to do with the proposal from jviau (#2740 (reply in thread))
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi!
We updated to the latest version of the durable task extensions for azure functions. Our durable entities run now in a dotnet-isolated function, at least at the staging environment.
Seems to work good, so far.
But we encountered some odd exceptions, I think it has to do with the proposal from jviau (#2740 (reply in thread))
"
Cannot access a disposed object.
Object name: 'IServiceProvider'.
"
Stack Trace:
[ { "assembly":"Microsoft.Extensions.DependencyInjection, Version=8.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60", "method":"Microsoft.Extensions.DependencyInjection.ServiceLookup.ThrowHelper.ThrowObjectDisposedException", "level":0 }, { "assembly":"Microsoft.Extensions.DependencyInjection, Version=8.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60", "method":"Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService", "level":1 }, { "assembly":"SmartCutterWorker.Calculations, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null", "method":"SmartCutterWorker.Calculations.DurableEntities.Calculator+<Calculate>d__9.MoveNext", "level":2, "line":281, "fileName":"D:\\a\\1\\s\\Source\\SmartCutterWorker.Calculations\\DurableEntities\\Calculator.cs" }, { "assembly":"System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "method":"System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw", "level":3 }, { "assembly":"System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "method":"System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification", "level":4 }, { "assembly":"Microsoft.DurableTask.Abstractions, Version=1.2.2.0, Culture=neutral, PublicKeyToken=6a4c0315c2d1d937", "method":"Microsoft.DurableTask.Entities.TaskEntityHelpers+<UnwrapTask>d__1.MoveNext", "level":5 }, { "assembly":"System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "method":"System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw", "level":6 }, { "assembly":"System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "method":"System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification", "level":7 }, { "assembly":"Microsoft.DurableTask.Worker, Version=1.2.2.0, Culture=neutral, PublicKeyToken=6a4c0315c2d1d937", "method":"Microsoft.DurableTask.Worker.Shims.TaskEntityShim+<ExecuteOperationBatchAsync>d__8.MoveNext", "level":8 } ]
NOTE: the entry "level 2" is our code.
At this line, we try to retrieve a service from InstanceServices of the function context.
Is this a problem? Maybe a new bug?
Or is proposed the workaround not a good idea with the latest version of durable task extensions?
Beta Was this translation helpful? Give feedback.
All reactions