delayed transitions - '/Programs/Execute on start run' issue

Issue #36 resolved
Amy Roberts created an issue

When a deferred transition is registered as part of a frontend's "start", Midas silently fails to run the script specified in the ODB key '/Programs/Execute on start run'.

I traced this back to the function cm_runtransition2, which returns the value CM_DEFERRED_TRANSITION before it runs the system command if there's a registered, deferred transition (in our case, a deferred stop).

The return-upon-finding-a-deferred-transition happens on line 4038 of midas.c; this block of code is headed by the helpful comment, "search database for clients with deferred transition request". The system call happens on line 4073 in midas.c; the system call block is headed by the comment, "execute programs on start".

Comments (5)

  1. Stefan Ritt

    Dear Amy, sorry for my late reply. I have your issue on my to-do list you posted the original message in the Forum. I'm swamped rigth now with beam time related work, but will come back to this later, I promise!

    Stefan

  2. Amy Roberts reporter

    Would these issues be easier to work with as pull requests?

    I'm not expecting that you'd merge them, but it might make the affected code easier to investigate.

  3. Amy Roberts reporter

    I've just tried reproducing this bug in a simpler environment, and I can't - I suspect the issue was with the script we were trying to run, not with the Midas code.

    It appears that this bug = totally not a Midas bug.

  4. Log in to comment