Skip to content

Commit a14027a

Browse files
Revert changes to abstracts.py and scheduler.py
1 parent ea2ca21 commit a14027a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/cuckoo/common/abstracts.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,10 @@ def set_options(self, options: dict) -> None:
131131

132132
def initialize(self) -> None:
133133
"""Read, load, and verify machines configuration."""
134+
# Machine table is cleaned to be filled from configuration file
135+
# at each start.
136+
self.db.clean_machines()
137+
134138
# Load.
135139
self._initialize()
136140

lib/cuckoo/core/scheduler.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,6 @@ def signal_handler(self, signum, frame):
284284
def start(self):
285285
"""Start scheduler."""
286286
if self.machinery_manager:
287-
with self.db.session.begin():
288-
self.db.clean_machines()
289287
with self.db.session.begin():
290288
self.machinery_manager.initialize_machinery()
291289

0 commit comments

Comments
 (0)