You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ORPA-pyOpenRPA/Sources/pyOpenRPA/Orchestrator/Core.py

15 lines
515 B

import threading
# Check if current execution is in Processor thread
def IsProcessorThread(inGSettings):
return inGSettings["ProcessorDict"]["ThreadIdInt"] == threading.get_ident()
def IsOrchestratorInitialized(inGSettings) -> bool:
"""
Check if Orchestrator will be successfully initialized
:param inGSettings: global settings (singleton)
:return:
"""
# Check if gSettings has flag "HiddenOrchestratorInitBool"
return inGSettings.get("HiddenIsOrchestratorInitializedBool", False)