-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
Restart the Launcher if it had crashed when invoked #7127
Conversation
Could this cause a crash loop if there is some unhandled exception on launcher startup? |
Only if you hit the invoke hotkey, it's no worse than what we have now. |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
I know that's maybe not a nice workaround. But what about adding a counter like trying three time to restart and then stop until hotkey is pressed again. |
No need for doing that, we should spend time making the actual module robust rather than add workarounds. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks for this. Validated that PT Run is restarted on pressing the hotkey, after it's killed.
@alekhyareddy28 |
@ivan100sic, I'm not aware of it. I remember @somil55 working on the issue where PT Run was not exiting as expected a while back but that was related to objects not being disposed off properly. I think he can add more to this and answer your question. |
@ivan100sic #5860 captures this issue and is discussed in #5860 (comment) |
Summary of the Pull Request
Could apply to issues such as this one #6605. If the Launcher crashes, when we invoke it, nothing happens until it is manually restarted. This PR restarts the launcher if we detect that it crashed or exited somehow.
PR Checklist
Validation Steps Performed
Start PT, enable the Launcher, terminate it using the Task Manager and hit the invoke hotkey. The launcher should appear immediately in the Task Manager and should show up on the screen in a few seconds.