MigrationWorker scale to 0 #8257
Unanswered
huberttrueselftrueme
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone.
I am working with aspire and create MigrationWorker project as in https://learn.microsoft.com/en-us/dotnet/aspire/database/ef-core-migrations
I want it to configure in a way that my instance will go stale to 0 after migrations are done.
My setup is
And worker is self
Issue:
After deploying my application, I notice in the Aspire Dashboard that the MigrationWorker remains running with 1 instance, generating unnecessary costs for the entire month. I expect it to scale down to 0 instances after completing the database migrations, but it doesn’t.
Question:
How can I configure the MigrationWorker in my .NET Aspire project to automatically scale to 0 instances after migrations are complete, preventing it from running continuously and incurring ongoing costs?
Beta Was this translation helpful? Give feedback.
All reactions