tests/svghmi/svghmi_0@svghmi/confnode.xml
author Edouard Tisserant
Tue, 25 May 2021 15:05:38 +0200
branchsvghmi
changeset 3248 ea93c14342d1
parent 3083 45f044cf845b
child 3269 5d174cdf4d98
permissions -rw-r--r--
Runtime: Fix exception "Worker is disabled" when connecting while PLC runtime is starting.

Pyro/wamp/UI delegate jobs to Worker, causing race condition if worker isn't already started.
Added a function to ensure that Worker is already created when pyro or UI starts
<?xml version='1.0' encoding='utf-8'?>
<SVGHMI xmlns:xsd="http://www.w3.org/2001/XMLSchema" OnWatchdog="echo Watchdog for {name} !" OnStart="chromium http://127.0.0.1:{port}/{name}" OnStop="echo Closing {name}" WatchdogInitial="10" WatchdogInterval="5"/>