IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 14, 2012, 3:05:17 PM (14 years ago)
Author:
heather
Message:

dvodb changes: staticsky and staticsky_multi are now just staticsky

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/addstar.pro

    r33030 r33525  
    2626    active true
    2727  end
    28   task addstar.exp.load.staticsky_multi
    29     active true
    30   end 
    3128  task addstar.exp.run
    3229    active true
     
    4441    active false
    4542  end
    46   task addstar.exp.load.staticsky_multi
    47     active false
    48   end
    4943  task addstar.exp.run
    5044    active false
     
    6256    active false
    6357  end
    64  task addstar.revert.staticsky_multi
    65     active false
    66   end
    6758end
    6859macro addstar.revert.on
     
    7162  end
    7263  task addstar.revert.stack
    73     active true
    74   end
    75   task addstar.revert.staticsky_multi
    7664    active true
    7765  end
     
    218206   # if ($LABEL:n == 0) break
    219207    $run = addtool -pendingexp -stage staticsky
    220     if ($DB:n == 0)
    221       option DEFAULT
    222     else
    223       # save the DB name for the exit tasks
    224       option $DB:$addstar_DB
    225       $run = $run -dbname $DB:$addstar_DB
    226       $addstar_DB ++
    227       if ($addstar_DB >= $DB:n) set addstar_DB = 0
    228     end
    229     add_poll_args run
    230     add_poll_labels run
    231     command $run
    232   end
    233 
    234   # success
    235   task.exit    0
    236     # convert 'stdout' to book format
    237     ipptool2book stdout addPendingExp -key add_id -uniq -setword dbname $options:0 -setword pantaskState INIT
    238     if ($VERBOSE > 2)
    239       book listbook addPendingExp
    240     end
    241 
    242     # delete existing entries in the appropriate pantaskStates
    243     process_cleanup addPendingExp
    244   end
    245 
    246   # default exit status
    247   task.exit    default
    248     showcommand failure
    249   end
    250 
    251   task.exit    crash
    252     showcommand crash
    253   end
    254 
    255   # operation times out?
    256   task.exit    timeout
    257     showcommand timeout
    258   end
    259 end
    260 
    261 task           addstar.exp.load.staticsky_multi
    262   host         local
    263 
    264   periods      -poll $LOADPOLL
    265   periods      -exec $LOADEXEC
    266   periods      -timeout 30
    267   npending     1
    268 
    269   stdout NULL
    270   stderr $LOGDIR/addstar.exp.log
    271 
    272   task.exec
    273    # if ($LABEL:n == 0) break
    274     $run = addtool -pendingexp -stage staticsky_multi
    275208    if ($DB:n == 0)
    276209      option DEFAULT
     
    373306        sprintf outroot "%s.add.%s" $STAGEROOT $ADD_ID
    374307    end
    375     if ("$STAGE" == "staticsky_multi")
    376         sprintf outroot "%s.add.%s" $STAGEROOT $ADD_ID
    377     end
    378308    if ("$STAGE" == "stack")
    379309        sprintf outroot "%s.add.%s" $STAGEROOT $ADD_ID
     
    388318      $run = $run --reduction $REDUCTION
    389319    end
    390     if ("$STAGE" == "staticsky_multi")
     320    if ("$STAGE" == "staticsky")
    391321      $run = $run --multi_num $STAGE_EXTRA1
    392322    end
     
    529459  end
    530460end
     461
    531462task addstar.revert.staticsky
    532463  host         local
     
    544475    if ($LABEL:n == 0) break
    545476    $run = addtool -revertprocessedexp -stage staticsky
    546     if ($DB:n == 0)
    547       option DEFAULT
    548     else
    549       # save the DB name for the exit tasks
    550       option $DB:$addstar_revert_DB_SS
    551       $run = $run -dbname $DB:$addstar_revert_DB_SS
    552       $addstar_revert_DB_SS ++
    553       if ($addstar_revert_DB_SS >= $DB:n) set addstar_revert_DB_SS = 0
    554     end
    555     add_poll_labels run
    556     command $run
    557   end
    558 
    559   # success
    560   task.exit    0
    561   end
    562 
    563   # locked list
    564   task.exit    default
    565     showcommand failure
    566   end
    567 
    568   task.exit    crash
    569     showcommand crash
    570   end
    571 
    572   # operation times out?
    573   task.exit    timeout
    574     showcommand timeout
    575   end
    576 end
    577 task addstar.revert.staticsky_multi
    578   host         local
    579 
    580   periods      -poll 5.0
    581   periods      -exec 60.0
    582   periods      -timeout 1200
    583   npending     1
    584   active        false
    585 
    586   stdout NULL
    587   stderr $LOGDIR/revert.log
    588 
    589   task.exec
    590     if ($LABEL:n == 0) break
    591     $run = addtool -revertprocessedexp -stage staticsky_multi
    592477    if ($DB:n == 0)
    593478      option DEFAULT
Note: See TracChangeset for help on using the changeset viewer.