fix: [tracker modulew] fix duplicate module stats

This commit is contained in:
Terrtia 2023-04-13 14:42:57 +02:00
parent 6f9e0c2f66
commit 6b5e833fc1
No known key found for this signature in database
GPG key ID: 1E1B1F50D84613D0
4 changed files with 9 additions and 9 deletions

View file

@ -56,9 +56,9 @@ class PgpDump(AbstractModule):
# Waiting time in seconds between to message processed
self.pending_seconds = 1
self.tracker_term = Tracker_Term()
self.tracker_regex = Tracker_Regex()
self.tracker_yara = Tracker_Yara()
self.tracker_term = Tracker_Term(queue=False)
self.tracker_regex = Tracker_Regex(queue=False)
self.tracker_yara = Tracker_Yara(queue=False)
# init
self.item_id = None

View file

@ -29,8 +29,8 @@ class Tracker_Regex(AbstractModule):
"""
Tracker_Regex module for AIL framework
"""
def __init__(self):
super(Tracker_Regex, self).__init__()
def __init__(self, queue=True):
super(Tracker_Regex, self).__init__(queue=queue)
config_loader = ConfigLoader()

View file

@ -44,8 +44,8 @@ class Tracker_Term(AbstractModule):
Tracker_Term module for AIL framework
"""
def __init__(self):
super(Tracker_Term, self).__init__()
def __init__(self, queue=True):
super(Tracker_Term, self).__init__(queue=queue)
config_loader = ConfigLoader()

View file

@ -30,8 +30,8 @@ class Tracker_Yara(AbstractModule):
"""
Tracker_Yara module for AIL framework
"""
def __init__(self):
super(Tracker_Yara, self).__init__()
def __init__(self, queue=True):
super(Tracker_Yara, self).__init__(queue=queue)
self.pending_seconds = 5
# Load Yara rules