Skip to content

Commit

Permalink
Change: Set task status to processing during report asset creation
Browse files Browse the repository at this point in the history
  • Loading branch information
a-h-abdelsalam authored and timopollmeier committed Nov 14, 2023
1 parent 91097a5 commit 39e6c0b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/manage_sql.c
Original file line number Diff line number Diff line change
Expand Up @@ -21284,15 +21284,16 @@ create_report (array_t *results, const char *task_id, const char *in_assets,

current_scanner_task = task;
global_current_report = report;
set_task_run_status (task, TASK_STATUS_DONE);
current_scanner_task = 0;
global_current_report = 0;
set_task_run_status (task, TASK_STATUS_PROCESSING);

if (in_assets_int)
{
create_asset_report (*report_id, "");
}

set_task_run_status (task, TASK_STATUS_DONE);
current_scanner_task = 0;
global_current_report = 0;
gvm_close_sentry ();
exit (EXIT_SUCCESS);
return 0;
Expand Down

0 comments on commit 39e6c0b

Please sign in to comment.