From 5427919d390c4329ea6780cc89a6969313e6a0c0 Mon Sep 17 00:00:00 2001 From: David Fowler Date: Sat, 12 Jul 2025 18:39:08 -0700 Subject: [PATCH] Force async execution of resource startup - Previously we didn't preemptively dispatch to the threadpool per resource on startup. That causes issues blocking other resource's startup because of a single blocking call. This change dispatching preemptively before creating the dcp resource. --- src/Aspire.Hosting/Dcp/DcpExecutor.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Aspire.Hosting/Dcp/DcpExecutor.cs b/src/Aspire.Hosting/Dcp/DcpExecutor.cs index 2b3bd106e20..16910a00167 100644 --- a/src/Aspire.Hosting/Dcp/DcpExecutor.cs +++ b/src/Aspire.Hosting/Dcp/DcpExecutor.cs @@ -1097,6 +1097,9 @@ async Task CreateResourceExecutablesAsyncCore(IResource resource, IEnumerable