ReflexProcess
Object representing a running Reflex app process. This process runs the front and back of a Reflex app. In dev mode: runs 'reflex run'. In prod mode: builds frontend (served by nginx) and runs backend-only.
There is 1 ReflexProcess per app. If the same reflex app is runned multiple times, it will use the different processes. In prod the front build folder is stored in resource path.
back_port: intcurrent_running_apps: Dictenv_hash: strfront_port: intid: stris_dev_mode: boolInitialize self. See help(type(self)) for accurate signature.
intintstrstrAdd an app to the process.
AppInstanceCall the health check of the app to check if it is still running
boolintFind the app that was generated from the given resource model id
strgws_core.apps.app_instance.AppInstance | NoneGet the app instance and check if it exists
strAppInstancestrgws_core.apps.app_instance.AppInstance | NonestrAppInstanceUrlstrGet the host name for the app process based on the port and suffix. This is used to generate the host URL for the app.
str - ''strFrontThemestrintGet the current status of the app process
AppProcessStatusAppProcessStatusDTOGet the current status text of the app process
strGet the token of the app process. This is used to secure the app and allow access to it.
strstrstrboolCheck if the app process is running
boolCheck if the app process is starting
boolCheck if the app process is stopped
boolSet the status and status text of the app process
AppProcessStatusstr - ''Start the process for the app using app_id
strMethod to start the check running loop to check if the app is still used
Kill the process and all apps
boolReturn the user id from the user access token if the user has access to the app
strstrstr | NoneCheck if the process uses the given port
intboolWait for the process to start
AppProcessStatus