mirror of
https://github.com/smicallef/spiderfoot.git
synced 2026-10-12 02:22:47 +00:00
sf: allow 60 seconds for post-scan correlations to complete (#1818)
This commit is contained in:
@@ -442,6 +442,13 @@ def start_scan(sfConfig: dict, sfModules: dict, args, loggingQueue) -> None:
|
||||
if not info:
|
||||
continue
|
||||
if info[5] in ["ERROR-FAILED", "ABORT-REQUESTED", "ABORTED", "FINISHED"]:
|
||||
# allow 60 seconds for post-scan correlations to complete
|
||||
timeout = 60
|
||||
p.join(timeout=timeout)
|
||||
if (p.is_alive()):
|
||||
log.error(f"Timeout reached ({timeout}s) waiting for scan {scanId} post-processing to complete.")
|
||||
sys.exit(-1)
|
||||
|
||||
if sfConfig['__logging']:
|
||||
log.info(f"Scan completed with status {info[5]}")
|
||||
if args.o == "json":
|
||||
|
||||
Reference in New Issue
Block a user