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

Hotfix/srun cancellation #3293

Open
wants to merge 5 commits into
base: devel
Choose a base branch
from
Open

Conversation

andre-merzky
Copy link
Member

No description provided.

Copy link

codecov bot commented Dec 18, 2024

Codecov Report

Attention: Patch coverage is 46.80851% with 75 lines in your changes missing coverage. Please review.

Project coverage is 42.79%. Comparing base (42a9b94) to head (c5ede27).

Files with missing lines Patch % Lines
src/radical/pilot/agent/executing/popen.py 71.87% 18 Missing ⚠️
src/radical/pilot/agent/executing/base.py 28.57% 15 Missing ⚠️
src/radical/pilot/agent/launch_method/srun.py 6.25% 15 Missing ⚠️
src/radical/pilot/agent/launch_method/base.py 23.07% 10 Missing ⚠️
src/radical/pilot/session.py 16.66% 5 Missing ⚠️
src/radical/pilot/utils/component.py 0.00% 4 Missing ⚠️
src/radical/pilot/agent/resource_manager/base.py 50.00% 3 Missing ⚠️
src/radical/pilot/task_manager.py 25.00% 3 Missing ⚠️
src/radical/pilot/pilot_manager.py 33.33% 2 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.


# --------------------------------------------------------------------------
#
def cancel_task(self, task):
Copy link
Contributor

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"

Copy link
Contributor

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

Copy link
Contributor

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)

Comment on lines +104 to +105
time.sleep(0.1)
os.killpg(pid, signal.SIGINT)
Copy link
Contributor

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

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

Successfully merging this pull request may close these issues.

2 participants