Debug: show row key and job IDs when kill fails to find job
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -91,10 +91,11 @@ class RunningTasksScreen(Screen):
|
||||
self.notify("No jobs to kill", severity="warning")
|
||||
return
|
||||
row_key, _ = table.coordinate_to_cell_key(table.cursor_coordinate)
|
||||
job_id = str(row_key)
|
||||
job_id = str(row_key.value if hasattr(row_key, 'value') else row_key)
|
||||
job = job_manager.get_job(job_id)
|
||||
if not job:
|
||||
self.notify("Job not found", severity="warning")
|
||||
ids = [j.id for j in job_manager.list_jobs()]
|
||||
self.notify(f"Not found: key={row_key!r} ids={ids}", severity="warning")
|
||||
return
|
||||
if job.status != "running":
|
||||
self.notify(f"Job already finished ({job.status})", severity="warning")
|
||||
|
||||
Reference in New Issue
Block a user