Back Midas Rome Roody Rootana
  Midas DAQ System  Not logged in ELOG logo
Entry  21 Jun 2023, Gennaro Tortone, Bug Report, mserver and script execution 
    Reply  26 Jun 2023, Stefan Ritt, Bug Report, mserver and script execution 
       Reply  27 Jun 2023, Gennaro Tortone, Bug Report, mserver and script execution 
          Reply  27 Jun 2023, Stefan Ritt, Bug Report, mserver and script execution 
Message ID: 2551     Entry time: 27 Jun 2023     In reply to: 2550     Reply to this: 2552
Author: Gennaro Tortone 
Topic: Bug Report 
Subject: mserver and script execution 
Hi Stefan,

> Indeed that could well be (and is certainly not intended like that). I checked the code
> and found that "execute on start run" and "execute on stop run" are called inside
> cm_transition(). That means they are executed on the computer which calls cm_transition().
> If you use mhttpd and start a run through the web interface, then mhttpd runs on your
> server and "execute on start run" gets executed on your server. If you stop the run
> by your frontend running on the client machine (like if a certain number of events 
> is reached), then "execute on stop run" gets executed on your client.

ok, this is clear to me...

> An easy way around would not to use "/Equipment/Trigger/Common/Event limit" which
> gets check by your frontend and therefore on the client computer, but use 
> "/Logger/Channels/0/Settings/Event limit" which gets checked by the logger and
> therefore executed on the server computer.

we never used "/Equipment/Trigger/Common/Event limit" but we always used
"/Logger/Channels/0/Settings/Event limit"...

btw I did some tests and I understand that this issue is related to 'deferred transition'
on frontend. Indeed I disabled deferred transition on frontend side and now script
execution is carried out always on MIDAS server;

Cheers,
Gennaro
ELOG V3.1.4-2e1708b5