mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 21:32:15 +01:00
(hotfix) added MongoDB check to register of app actions - without will discover of actions take ages
This commit is contained in:
parent
89e2b2aa4c
commit
209be28ea6
1 changed files with 5 additions and 0 deletions
|
|
@ -4,6 +4,7 @@ import time
|
|||
from pype.ftrack import AppAction
|
||||
from avalon import lib
|
||||
from pypeapp import Logger
|
||||
from pype.lib import get_all_avalon_projects
|
||||
|
||||
log = Logger().get_logger(__name__)
|
||||
|
||||
|
|
@ -48,6 +49,10 @@ def registerApp(app, session):
|
|||
|
||||
|
||||
def register(session):
|
||||
# WARNING getting projects only helps to check connection to mongo
|
||||
# - without will `discover` of ftrack apps actions take ages
|
||||
result = get_all_avalon_projects()
|
||||
|
||||
apps = []
|
||||
|
||||
launchers_path = os.path.join(os.environ["PYPE_CONFIG"], "launchers")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue