Track the last reflex run time (#4045)
This commit is contained in:
parent
3f51943162
commit
12d73e4167
@ -237,6 +237,9 @@ def setup_frontend(
|
|||||||
# Set the environment variables in client (env.json).
|
# Set the environment variables in client (env.json).
|
||||||
set_env_json()
|
set_env_json()
|
||||||
|
|
||||||
|
# update the last reflex run time.
|
||||||
|
prerequisites.set_last_reflex_run_time()
|
||||||
|
|
||||||
# Disable the Next telemetry.
|
# Disable the Next telemetry.
|
||||||
if disable_telemetry:
|
if disable_telemetry:
|
||||||
processes.new_process(
|
processes.new_process(
|
||||||
|
@ -131,6 +131,14 @@ def get_or_set_last_reflex_version_check_datetime():
|
|||||||
return last_version_check_datetime
|
return last_version_check_datetime
|
||||||
|
|
||||||
|
|
||||||
|
def set_last_reflex_run_time():
|
||||||
|
"""Set the last Reflex run time."""
|
||||||
|
path_ops.update_json_file(
|
||||||
|
get_web_dir() / constants.Reflex.JSON,
|
||||||
|
{"last_reflex_run_datetime": str(datetime.now())},
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def check_node_version() -> bool:
|
def check_node_version() -> bool:
|
||||||
"""Check the version of Node.js.
|
"""Check the version of Node.js.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user