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
don't kill if pid same as file (#8997) (#8998) #9007
Conversation
The pid file needs to be deleted.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #9007 +/- ##
=======================================
Coverage 77.81% 77.81%
=======================================
Files 150 150
Lines 18688 18689 +1
Branches 3194 3194
=======================================
+ Hits 14542 14543 +1
Misses 3854 3854
Partials 292 292
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
can you please better explain the new change? do you think an integration test is possible to add for this part?
@lewijw Hey there, I’m a bit confused - wasn’t there another PR about this? #8998 I’m trying to make sure Thank you. |
@auvipy and @Nusnus, I understand your concern, and I am not sure why I did not see this issue earlier because as soon as remove_if_stale returns, the acquire() function is called which tries to write the pid file. So, why I am just now getting a "file exists" failure is a bit confusing to me. However, I do believe that a revert would not bring the codebase to a better state because the code kills the process that it is running in. I am also very certain that there will be no changes after this commit. |
Note also that every time remove_if_stale returns True, it removes the pid file first. I was reluctant to do the same at first until I was certain it was required. Now it looks like it is required. |
The pid file needs to be deleted.
Note: Before submitting this pull request, please review our contributing
guidelines.
Description