runtime/PlcStatus.py
author Edouard Tisserant
Tue, 25 May 2021 15:05:38 +0200
changeset 2738 58f2e3f22934
parent 2416 1ca207782dde
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
# -*- coding: utf-8 -*-

# See COPYING.Runtime file for copyrights details.


def _(x):
    """No translation"""
    return x


Broken = _("Broken")
Started = _("Started")
Stopped = _("Stopped")
Disconnected = _("Disconnected")
Empty = _("Empty")