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:
shuki
2026-03-06 18:24:15 +02:00
parent 53476455e3
commit 92828ab891

View File

@@ -91,10 +91,11 @@ class RunningTasksScreen(Screen):
self.notify("No jobs to kill", severity="warning") self.notify("No jobs to kill", severity="warning")
return return
row_key, _ = table.coordinate_to_cell_key(table.cursor_coordinate) 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) job = job_manager.get_job(job_id)
if not job: 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 return
if job.status != "running": if job.status != "running":
self.notify(f"Job already finished ({job.status})", severity="warning") self.notify(f"Job already finished ({job.status})", severity="warning")