-
Notifications
You must be signed in to change notification settings - Fork 110
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
Have lsf_driver specify SIGKILL when bkilling #7433
Conversation
aab47cd
to
d3cc7aa
Compare
If the mother ERT process is terminated (say an eager user hits ctrl-c), this signal will be propagated and kill this subprocess, we might not want that, we want this script with bkills live happily independent of mother Ert. I think you want to do as here: ert/src/ert/scheduler/local_driver.py Line 70 in 2b180e9
in order to avoid this. |
2a2c1a7
to
57f9419
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7433 +/- ##
==========================================
- Coverage 85.25% 84.52% -0.74%
==========================================
Files 387 387
Lines 23055 23069 +14
Branches 881 887 +6
==========================================
- Hits 19655 19498 -157
- Misses 3290 3464 +174
+ Partials 110 107 -3 ☔ View full report in Codecov by Sentry. |
57f9419
to
c4a829f
Compare
Should I change this in the job queue driver too? |
Yes I think that makes sense. |
26a5ede
to
0c4c73a
Compare
I marked it as a bug fix because bkill uses different signals than qdel, and the users got confused because it showed as KeyboardInterrupt in the logs. |
00a0d67
to
d3c6027
Compare
This is not the correct behaviour. There needs to be a |
Do we expect the job to react differently to SIGTERM than SIGINT? The job can choose to ignore both. I am thinking that changing to SIGTERM solves the confusion for the users, and that sending an additional SIGKILL later is a new feature. |
d3c6027
to
97c9018
Compare
I updated this to do SIGKILL instead of SIGTERM. |
03806fb
to
bd1fea1
Compare
bd1fea1
to
b7b15e2
Compare
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.
I think it looks good now! Good job @jonathan-eq ! 🚀
Have you performed a manual test of the "kill all realizations" button in the GUI with this change? (or some other real-world test of the changed C-code?) |
It does indeed NOT work.
|
dd507da
to
9d23320
Compare
Fixed it!! |
9d23320
to
4aeed15
Compare
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.
Very good! 🚀
Have lsf_driver specify SIGKILL signal when using bkill
This commit makes the lsf_driver use bkill with the SIGKILL signal instead of the default SIGINT.
Issue
Resolves #7443
Approach
Short description of the approach
(Screenshot of new behavior in GUI if applicable)
When applicable