-
Notifications
You must be signed in to change notification settings - Fork 23
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
Hotfix/srun cancellation #3293
base: devel
Are you sure you want to change the base?
Hotfix/srun cancellation #3293
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## devel #3293 +/- ##
==========================================
- Coverage 42.91% 42.79% -0.12%
==========================================
Files 97 97
Lines 11286 11351 +65
==========================================
+ Hits 4843 4858 +15
- Misses 6443 6493 +50 ☔ View full report in Codecov by Sentry. |
|
||
# -------------------------------------------------------------------------- | ||
# | ||
def cancel_task(self, task): |
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.
something wrong with states update - tmgr has the following states for cancelled tasks
state: "FAILED"
target_state: "CANCELED"
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.
$ cat agent_staging_output.0000.log | grep "m0.i0.s9.hello.2.0000"
1734567093.938 : agent_staging_output.0000 : 47102 : 140624563013184 : DEBUG : task m0.i0.s9.hello.2.0000 skips staging: FAILED
1734567094.000 : agent_staging_output.0000 : 47102 : 140624563013184 : DEBUG : task m0.i0.s9.hello.2.0000 skips staging: CANCELED
appears two times in staging output
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.
the following fix 6449329 helped to overcome the issue (it is within the project/impeccable
branch)
time.sleep(0.1) | ||
os.killpg(pid, signal.SIGINT) |
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.
import os
import signal
import time
No description provided.