IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 16, 2010, 3:26:43 PM (16 years ago)
Author:
heather
Message:

revert! dist, diff, stack!!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/diff.pro

    r26889 r26961  
    4040    active true
    4141  end
     42  task diff.revert
     43    active false
     44  end
    4245end
    4346
     
    5356    active false
    5457  end
     58  task diff.revert
     59    active false
     60  end
     61end
     62
     63macro diff.revert.on
     64  task diff.revert
     65    active true
     66  end
     67end
     68
     69macro diff.revert.off
     70  task diff.revert
     71    active false
     72  end
    5573end
    5674
     
    7694### Load tasks for doing the differences
    7795### Tasks are loaded into diffSkyfile.
     96
     97$diff_revert_DB = 0
     98
    7899task           diff.skycell.load
    79100  host         local
     
    380401#   end
    381402# end
     403
     404task diff.revert
     405  host         local
     406
     407  periods      -poll 5.0
     408  periods      -exec 60.0
     409  periods      -timeout 120.0
     410  npending     1
     411
     412  stdout NULL
     413  stderr $LOGDIR/revert.log
     414
     415  task.exec
     416    if ($LABEL:n == 0) break
     417    $run = difftool -revertdiffskyfile
     418    if ($DB:n == 0)
     419      option DEFAULT
     420    else
     421      # save the DB name for the exit tasks
     422      option $DB:$diff_revert_DB
     423      $run = $run -dbname $DB:$diff_revert_DB
     424      $diff_revert_DB ++
     425      if ($diff_revert_DB >= $DB:n) set diff_revert_DB = 0
     426    end
     427    add_poll_labels run
     428    command $run
     429  end
     430
     431  # success
     432  task.exit    0
     433  end
     434
     435  # locked list
     436  task.exit    default
     437    showcommand failure
     438  end
     439
     440  task.exit    crash
     441    showcommand crash
     442  end
     443
     444  # operation times out?
     445  task.exit    timeout
     446    showcommand timeout
     447  end
     448end
Note: See TracChangeset for help on using the changeset viewer.