Skip to content

Commit f733cf7

Browse files
committed
Remove Loader startup/shutdown as it's not needed
We don't need to startup and shutdown the Loader as we're not running it as a Daemon. We're invoking its load_msg method and passing it a message to load directly.
1 parent ee6b9c5 commit f733cf7

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

monitoring/validator/views.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,12 +141,8 @@ def load(record: str) -> str:
141141

142142
loader = Loader(qpath, record, db_backend, db_host, db_port, db_name, db_username, db_password, pidfile)
143143

144-
loader.startup()
145-
146144
loader.load_msg(record, signer)
147145

148-
loader.shutdown()
149-
150146
return("Record(s) will load successfully!")
151147

152148
except (ApelDbException, InvalidRecordException, LoaderException, RecordFactoryException) as e:

0 commit comments

Comments
 (0)