IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 27, 2011, 3:09:17 PM (15 years ago)
Author:
heather
Message:

crap. I don't know why it thinks some of these are modified, but diffing them
against a fresh checkout of the trunk shows no differences.

These are the merge of addstar changes into the trunk. This adds tables,
breaking apart minidvodbRun into 2 parts (building/relphot/addstar) and
(verify/merging), which will make it easier to rebuild dvodbs in the
future. There's some debugging of various tasks here (addstar.revert, for
example), and a lot of cleanup of code.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/ippTasks/addstar.pro

    r32832 r33030  
    5353
    5454macro addstar.revert.off
    55   task addstar.revert
     55  task addstar.revert.cam
     56    active false
     57  end
     58 task addstar.revert.stack
     59    active false
     60  end
     61 task addstar.revert.staticsky
     62    active false
     63  end
     64 task addstar.revert.staticsky_multi
    5665    active false
    5766  end
    5867end
    5968macro addstar.revert.on
    60   task addstar.revert
     69  task addstar.revert.cam
     70    active true
     71  end
     72  task addstar.revert.stack
     73    active true
     74  end
     75  task addstar.revert.staticsky_multi
     76    active true
     77  end
     78  task addstar.revert.staticsky
    6179    active true
    6280  end
     
    6583
    6684# this variable will cycle through the known database names
    67 $addstar_DB = 0
    68 $addstar_revert_DB = 0
     85$addstar_DB = 0
     86#this may not work for more databases (addstar) will do that later)
     87$addstar_revert_DB_C = 0
     88$addstar_revert_DB_S = 0
     89$addstar_revert_DB_SS = 0
     90$addstar_revert_DB_SSM = 0
    6991
    7092
     
    318340    book getword addPendingExp $pageName stage_extra1 -var STAGE_EXTRA1
    319341    book getword addPendingExp $pageName stageroot -var STAGEROOT
    320     book getword addPendingExp $pageName stage -var STAGE 
     342    book getword addPendingExp $pageName stage -var STAGE
     343    book getword addPendingExp $pageName stage_id -var STAGE_ID
    321344    book getword addPendingExp $pageName workdir -var WORKDIR_TEMPLATE
    322345    book getword addPendingExp $pageName reduction -var REDUCTION
     
    367390    if ("$STAGE" == "staticsky_multi")
    368391      $run = $run --multi_num $STAGE_EXTRA1
     392    end
     393    if ("$STAGE" == "cam")
     394      $run = $run --stage_id $STAGE_ID
    369395    end
    370396    if ("$IMAGE_ONLY" == "T")
     
    411437end
    412438
    413 task addstar.revert
     439task addstar.revert.cam
    414440  host         local
    415441
     
    425451  task.exec
    426452    if ($LABEL:n == 0) break
    427     $run = addtool -revertprocessedexp
    428     if ($DB:n == 0)
    429       option DEFAULT
    430     else
    431       # save the DB name for the exit tasks
    432       option $DB:$addstar_revert_DB
    433       $run = $run -dbname $DB:$addstar_revert_DB
    434       $addstar_revert_DB ++
    435       if ($addstar_revert_DB >= $DB:n) set addstar_revert_DB = 0
     453    $run = addtool -revertprocessedexp -stage cam
     454    if ($DB:n == 0)
     455      option DEFAULT
     456    else
     457      # save the DB name for the exit tasks
     458      option $DB:$addstar_revert_DB_C
     459      $run = $run -dbname $DB:$addstar_revert_DB_C
     460      $addstar_revert_DB_C ++
     461      if ($addstar_revert_DB_C >= $DB:n) set addstar_revert_DB_C = 0
    436462    end
    437463    add_poll_labels run
     
    457483  end
    458484end
     485task addstar.revert.stack
     486  host         local
     487
     488  periods      -poll 5.0
     489  periods      -exec 60.0
     490  periods      -timeout 1200
     491  npending     1
     492  active        false
     493
     494  stdout NULL
     495  stderr $LOGDIR/revert.log
     496
     497  task.exec
     498    if ($LABEL:n == 0) break
     499    $run = addtool -revertprocessedexp -stage stack
     500    if ($DB:n == 0)
     501      option DEFAULT
     502    else
     503      # save the DB name for the exit tasks
     504      option $DB:$addstar_revert_DB_S
     505      $run = $run -dbname $DB:$addstar_revert_DB_S
     506      $addstar_revert_DB_S ++
     507      if ($addstar_revert_DB_S >= $DB:n) set addstar_revert_DB_S = 0
     508    end
     509    add_poll_labels run
     510    command $run
     511  end
     512
     513  # success
     514  task.exit    0
     515  end
     516
     517  # locked list
     518  task.exit    default
     519    showcommand failure
     520  end
     521
     522  task.exit    crash
     523    showcommand crash
     524  end
     525
     526  # operation times out?
     527  task.exit    timeout
     528    showcommand timeout
     529  end
     530end
     531task addstar.revert.staticsky
     532  host         local
     533
     534  periods      -poll 5.0
     535  periods      -exec 60.0
     536  periods      -timeout 1200
     537  npending     1
     538  active        false
     539
     540  stdout NULL
     541  stderr $LOGDIR/revert.log
     542
     543  task.exec
     544    if ($LABEL:n == 0) break
     545    $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
     576end
     577task 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
     592    if ($DB:n == 0)
     593      option DEFAULT
     594    else
     595      # save the DB name for the exit tasks
     596      option $DB:$addstar_revert_DB_SSM
     597      $run = $run -dbname $DB:$addstar_revert_DB_SSM
     598      $addstar_revert_DB_SSM ++
     599      if ($addstar_revert_DB_SSM >= $DB:n) set addstar_revert_DB_SSM = 0
     600    end
     601    add_poll_labels run
     602    command $run
     603  end
     604
     605  # success
     606  task.exit    0
     607  end
     608
     609  # locked list
     610  task.exit    default
     611    showcommand failure
     612  end
     613
     614  task.exit    crash
     615    showcommand crash
     616  end
     617
     618  # operation times out?
     619  task.exit    timeout
     620    showcommand timeout
     621  end
     622end
Note: See TracChangeset for help on using the changeset viewer.