Comments (4)
If the issue is with AppInsights ingestion then I think we can track these issues in your other GH issue and close this one?
from azure-functions-dotnet-worker.
Hi @dmytro-gokun, a cancellation token should be getting signaled on function timeout, I believe there a graceful shutdown period of a couple seconds but is not configurable.
Can you share more details about the issue you're seeing? If you're able to share a region, timestamp and invocation ID I should be able to investigate further. Thanks!
from azure-functions-dotnet-worker.
@liliankasem I did some testing and I think you are right about CancellationToken and 2 second timeout. The reason i thought cancellation token was not signaled is that i have code like this:
public class Function
{
[Function("Function")]
public async Task Run(
[HttpTrigger(AuthorizationLevel.Anonymous, "get", "post")]
HttpRequestData request,
CancellationToken cancellationToken)
{
try
{
await DoWork(cancellationToken);
}
catch (OperationCanceledException)
{
Log.LogInformation("Canceled");
}
}
}
with logs being set to Application Insights. So, that "Canceled" log does not end up in AI. I think the reason for that is that the worker gets restarted after the function timeout and some AI logs are lost. Not 100% sure about this though...
from azure-functions-dotnet-worker.
Agree
from azure-functions-dotnet-worker.
Related Issues (20)
- [ASP.NET Core Integration] Skip serialization of http response following function execution
- GeneratedFunctionMetadataProvider emitting binding data without "dataType" attribute
- .NET 8 HttpContext is null when it is not in .NET 6 HOT 1
- Worker.Extensions.CosmosDB is using old Azure.Identity package (v1.4) with vulnerabilities HOT 2
- [ServiceBusSessionMessageActions] Implement session management APIs
- InvalidOperationException when canceling request HOT 12
- Worker failing without raising error HOT 2
- AI logs are not flushed when process exits HOT 1
- Exception when running ServiceBusTrigger with managed identity locally HOT 6
- ServiceBusTrigger ignoring the DefaultAzureCredentialOptions set in DefaultAzureCredentials HOT 3
- Publish separate symbol packages (.snupkg)
- Unable to use a more compact format for console logs
- Azure Storage Blob Trigger metadata properties are always missing. HOT 2
- Logging not working in Azure Function Isolated Model HOT 3
- How to exactly use response compression with the isolated worker model?
- [QUESTION] What is the purpose of the FrameworkReference and ExecutionContext that are supposed to be added to you csproj file when you migrate to using the isolated model?
- Dotnet CLI cannot deploy manual zip packages into a Linux host HOT 1
- IFeatureCollection has been disposed. Object name: 'Collection'. HOT 3
- Using (ITableEntity) POCO class for TableInput on a queue trigger throws a JSON exception, while a TableEntity does work HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-functions-dotnet-worker.