Merge branch 'watchdog' into for_webui
# Conflicts: # src-python/webui_controller.py # src-python/webui_mainloop.py
This commit is contained in:
@@ -91,6 +91,8 @@ const StartPythonFacadeComponent = () => {
|
||||
useEffect(() => {
|
||||
if (!hasRunRef.current) {
|
||||
asyncStartPython().then((result) => {
|
||||
startFeedingToWatchDog();
|
||||
|
||||
getUiLanguage();
|
||||
getUiScaling();
|
||||
getMessageLogUiScaling();
|
||||
@@ -245,4 +247,12 @@ const TransparencyController = () => {
|
||||
}, [currentTransparency.data]);
|
||||
|
||||
return null;
|
||||
};
|
||||
|
||||
import { useStdoutToPython } from "@logics/useStdoutToPython";
|
||||
const startFeedingToWatchDog = () => {
|
||||
const { asyncStdoutToPython } = useStdoutToPython();
|
||||
setInterval(() => {
|
||||
asyncStdoutToPython("/run/feed_watchdog");
|
||||
}, 20000); // 20000ミリ秒 = 20秒
|
||||
};
|
||||
@@ -82,6 +82,7 @@ export const useReceiveRoutes = () => {
|
||||
|
||||
|
||||
const routes = {
|
||||
"/run/feed_watchdog": () => {},
|
||||
// Main Page
|
||||
// Page Controls
|
||||
"/get/data/main_window_sidebar_compact_mode": updateIsMainPageCompactMode,
|
||||
|
||||
Reference in New Issue
Block a user