Ospd scan finished but gvmd task keep running

Hi all,

I built the GVM components from the latest stable git source, when scan a target, I noticed that the ospd scan finished but the gvmd task keep running. Following is the logs:

ospd-openvas.log:

OSPD[45] 2023-01-16 14:56:07,303: INFO: (ospd.command.command) Scan a50f723b-faf8-4cdd-a7de-c581727c998a added to the queue in position 1.
OSPD[45] 2023-01-16 14:56:11,998: INFO: (ospd.ospd) Currently 1 queued scans.
OSPD[45] 2023-01-16 14:56:12,003: INFO: (ospd.ospd) Starting scan a50f723b-faf8-4cdd-a7de-c581727c998a.
OSPD[45] 2023-01-16 15:51:57,017: INFO: (ospd.ospd) a50f723b-faf8-4cdd-a7de-c581727c998a: Host scan finished.
OSPD[45] 2023-01-16 15:51:57,019: INFO: (ospd.ospd) a50f723b-faf8-4cdd-a7de-c581727c998a: Scan finished.

gvmd.log:

event task:MESSAGE:2023-01-16 14h56.06 UTC:22247: Status of task  (ed3ec5bc-f8a9-4aed-ac38-58358adfd8f5) has changed to New
event task:MESSAGE:2023-01-16 14h56.07 UTC:22247: Task test (ed3ec5bc-f8a9-4aed-ac38-58358adfd8f5) has been created by user
event task:MESSAGE:2023-01-16 14h56.07 UTC:22247: Status of task test (ed3ec5bc-f8a9-4aed-ac38-58358adfd8f5) has changed to Requested
event task:MESSAGE:2023-01-16 14h56.07 UTC:22247: Task test (ed3ec5bc-f8a9-4aed-ac38-58358adfd8f5) has been requested to start by user
event task:MESSAGE:2023-01-16 14h56.07 UTC:22256: Status of task test (ed3ec5bc-f8a9-4aed-ac38-58358adfd8f5) has changed to Queued
event task:MESSAGE:2023-01-16 14h56.12 UTC:22256: Status of task test (ed3ec5bc-f8a9-4aed-ac38-58358adfd8f5) has changed to Running

No more lines here, the task keep running

This looks similar to the one below and probably should be discussed with the development team over there directly:

https://github.com/greenbone/gvmd/issues/1668