Changeset 18903 for trunk/FACT++


Ignore:
Timestamp:
09/07/17 13:55:57 (7 years ago)
Author:
dneise
Message:
Setting startup Handler loop timeouts to 5000ms.

We saw endless loops in Main.js during startup now several 
times reported by shifters. They happened either during startup
in the evening or after Main.js re-start in the middle of the night.

Main.js would report to be "Running" but do nothing for ever.
Some shifters would only notice after a long time.
Shifthelper would not notice it ever.

These Handler.loops running without any timeout
were most probably the reason. 

I checked the log for usual times, they were in the range of 0..1400ms.
So I think setting it to 5sec should be fine.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/scripts/Startup.js

    r18900 r18903  
    6666//loop.add(handleAgilentPowerOn80V);
    6767loop.add(handlePwrCameraOn);
    68 loop.run();
     68loop.run(5000);
    6969console.out("");
    7070
     
    9797loop.add(handleRatectrlConnected);
    9898loop.add(handleLidClosed);
    99 loop.run();
     99loop.run(5000);
    100100
    101101console.out("biasctrl:    "+dim.state("BIAS_CONTROL").name);
     
    205205loop = new Handler("ArmDrive");
    206206loop.add(handleDriveArmed);
    207 loop.run();
     207loop.run(5000);
    208208
    209209
Note: See TracChangeset for help on using the changeset viewer.