Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DbMigrator never ends in a continuous deployment job #3574

Closed
Stirda opened this issue Apr 12, 2020 · 4 comments · Fixed by #3577
Closed

DbMigrator never ends in a continuous deployment job #3574

Stirda opened this issue Apr 12, 2020 · 4 comments · Fixed by #3577

Comments

@Stirda
Copy link

Stirda commented Apr 12, 2020

When I ask my Azure DevOps release pipeline to run dotnet MyCompany.MyProject.DbMigrator.dll, the task never terminates, waiting indefinitely for a SIGTERM or Ctrl+C sequence to be sent.

I understand that this is the standard behavior of ConsoleLifetime but how can I run DbMigrator unattended?

@hikalkan
Copy link
Member

Thank you for creating the issue, I also was thinking about that.

@maliming
Copy link
Member

We can inject IHostApplicationLifetime into DbMigratorHostedService to manually request termination of the current application.

@aklscv
Copy link

aklscv commented Apr 22, 2020

@Stirda Off-topic: Would you mind sharing your yml file for the release pipeline? I am trying to get mine to work but I am confused about deploying the DbMigrator. What steps do you take? Do you first deploy the DbMigrator, execute the dotnet .dll and then deploy the website?

@Stirda
Copy link
Author

Stirda commented Apr 22, 2020

@aklscv I suppose that the ABP team would prefer you create an issue for that. I will answer your question in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants