-
- Downloads
Merge the two state machines (batchstate and state) into a single
state machine (state). All of the stuff that was previously handled by using batchstate is now embedded into the one state machine. Of course, these mostly overlapped, so its not that much of a change, except that we also redid the machine, adding more states (for example, modify phases are now explicit. To get a picture of the actual state machine, on boss: stategraph -o newstates EXPTSTATE gv newstates.ps Things to note: * The "batchstate" slot of the experiments table is now used solely to provide a lock for batch daemon. A secondary change will be to change the slot name to something more appropriate, but it can happen anytime after this new stuff is installed. * I have left expt_locked for now, but another later change will be to remove expt_locked, and change it to active_busy or some such new state name in the state machine. I have removed most uses of expt_locked, except those that were necessary until there is a new state to replace it. * These new changes are an implementation of the new state machine, but I have not done anything fancy. Most of the code is the same as it was before. * I suspect that there are races with the batch daemon now, but they are going to be rare, and the end result is probably that a cancelation is delayed a little bit.
Showing
- db/libdb.pm.in 30 additions, 77 deletionsdb/libdb.pm.in
- sql/database-fill.sql 26 additions, 31 deletionssql/database-fill.sql
- tbsetup/assign_wrapper.in 5 additions, 5 deletionstbsetup/assign_wrapper.in
- tbsetup/batch_daemon.in 77 additions, 96 deletionstbsetup/batch_daemon.in
- tbsetup/batchexp.in 17 additions, 39 deletionstbsetup/batchexp.in
- tbsetup/endexp.in 101 additions, 57 deletionstbsetup/endexp.in
- tbsetup/eventsys_control.in 1 addition, 0 deletionstbsetup/eventsys_control.in
- tbsetup/mkexpdir.in 8 additions, 7 deletionstbsetup/mkexpdir.in
- tbsetup/node_update.in 4 additions, 22 deletionstbsetup/node_update.in
- tbsetup/os_setup.in 2 additions, 0 deletionstbsetup/os_setup.in
- tbsetup/startexp.in 45 additions, 39 deletionstbsetup/startexp.in
- tbsetup/swapexp.in 219 additions, 181 deletionstbsetup/swapexp.in
- tbsetup/tbend.in 6 additions, 23 deletionstbsetup/tbend.in
- tbsetup/tbprerun.in 21 additions, 40 deletionstbsetup/tbprerun.in
- tbsetup/tbreport.in 5 additions, 11 deletionstbsetup/tbreport.in
- tbsetup/tbswap.in 91 additions, 224 deletionstbsetup/tbswap.in
- tbsetup/vnode_setup.in 2 additions, 1 deletiontbsetup/vnode_setup.in
- utils/delay_config.in 6 additions, 11 deletionsutils/delay_config.in
- www/beginexp.php3 6 additions, 1 deletionwww/beginexp.php3
- www/dbdefs.php3.in 1 addition, 28 deletionswww/dbdefs.php3.in
Loading
Please register or sign in to comment