mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-02 05:26:45 +00:00
do not reload whe currently loading
This commit is contained in:
parent
d54bbf562b
commit
3920108d83
@ -121,6 +121,10 @@ class Plugins:
|
|||||||
|
|
||||||
def reload_plugins(self):
|
def reload_plugins(self):
|
||||||
"""safely reload IntegrationPlugins"""
|
"""safely reload IntegrationPlugins"""
|
||||||
|
# do not reload whe currently loading
|
||||||
|
if self.is_loading:
|
||||||
|
return
|
||||||
|
|
||||||
logger.info('Start reloading plugins')
|
logger.info('Start reloading plugins')
|
||||||
with maintenance_mode_on():
|
with maintenance_mode_on():
|
||||||
self.unload_plugins()
|
self.unload_plugins()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user