How to allow inflight requests to drain in an ASP.NET Core application?

Solution In Progress - Updated -

Issue

  • OpenShift sends SIGTERM when stopping a container, causing our ASP.NET Core application to abandon inflight requests
  • How do I allow requests to complete gracefully when my ASP.NET Core application is stopping?

Environment

  • Microsoft ASP.NET Core 2.1
  • OpenShift Container Platform 3

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.