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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content