Skip to content

Commit

Permalink
Merge pull request #1234 from rommapp/fix/scanning-skip-if-already-sc…
Browse files Browse the repository at this point in the history
…heduled

fix: Skip scanning task by checking against the correct function name
  • Loading branch information
adamantike authored Oct 12, 2024
2 parents ae9939d + a26168e commit c91611f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/watcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def on_any_event(self, event):

# Skip if a scan is already scheduled
for job in tasks_scheduler.get_jobs():
if job.func_name == "endpoints.scan.scan_platforms":
if job.func_name == "endpoints.sockets.scan.scan_platforms":
if job.args[0] == []:
log.info("Full rescan already scheduled")
return
Expand Down

0 comments on commit c91611f

Please sign in to comment.