Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions backend/secuscan/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -643,8 +643,8 @@ async def cancel_task(self, task_id: str) -> bool:
)

await self._broadcast(task_id, "status", TaskStatus.CANCELLED.value)
await self._invalidate_cached_views()

await self._invalidate_cached_views()
await db.log_audit(
"task_cancelled",
"Task cancelled by user",
Expand All @@ -659,7 +659,7 @@ async def get_task_status(self, task_id: str) -> Optional[Dict]:
task_row = await db.fetchone(
"""
SELECT id, plugin_id, tool_name, target, status, scan_phase, created_at, started_at, completed_at,
duration_seconds, exit_code, error_message, preset, inputs_json
duration_seconds, exit_code, error_message, preset, inputs_json
FROM tasks WHERE id = ?
""",
(task_id,)
Expand Down Expand Up @@ -828,7 +828,7 @@ async def _upsert_findings_and_report_from_scanner(self, db, task_id: str, scann
exploitability, confidence, asset_exposure,
risk_score, risk_factors_json
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?)
?, ?, ?, ?, ?)
""",
(
finding_id,
Expand Down
Loading