IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 21, 2015, 5:44:52 PM (11 years ago)
Author:
watersc1
Message:

Untested fullforce_summary handlers. addtool compiles and addstar_run.pl doesn't complain about variables, but I have not confirmed they work correctly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/addstar.pro

    r38582 r38937  
    244244$addstar_revert_DB_SC = 0
    245245$addstar_revert_DB_FF = 0
     246$addstar_revert_DB_FFS = 0
    246247$addstar_revert_DB_DF = 0
     248
    247249
    248250#$LOADEXEC_ADD = 300
     
    452454        sprintf outroot "%s.add.%s" $STAGEROOT $ADD_ID
    453455    end
     456    if ("$STAGE" == "fullforce_summary")
     457        sprintf outroot "%s.add.%s" $STAGEROOT $ADD_ID
     458    end
    454459
    455460 
     
    468473      $run = $run --stage_id $STAGE_ID
    469474    end
    470    if ("$STAGE" == "skycal")
     475    if ("$STAGE" == "skycal")
    471476      $run = $run --stage_id $STAGE_ID
    472477    end
    473    if ("$STAGE" == "diff")
     478    if ("$STAGE" == "diff")
    474479      $run = $run --stage_id $STAGE_ID --stage_extra1 $STAGE_EXTRA1
    475480    end
    476    if ("$STAGE" == "fullforce")
     481    if ("$STAGE" == "fullforce")
    477482      $run = $run --stage_id $STAGE_ID --stage_extra1 $STAGE_EXTRA1
     483    end
     484    if ("$STAGE" == "fullforce_summary")
     485    # This shouldn't need a stage_extra1, as there are no subcomponents to the ff summary.
     486      $run = $run --stage_id
    478487    end
    479488
     
    596605        sprintf outroot "%s.add.%s" $STAGEROOT $ADD_ID
    597606    end
     607    if ("$STAGE" == "fullforce_summary")
     608        sprintf outroot "%s.add.%s" $STAGEROOT $ADD_ID
     609    end
    598610
    599611 
     
    949961  end
    950962end
     963
     964task addstar.revert.fullforce_summary
     965  host         local
     966
     967  periods      -poll 5.0
     968  periods      -exec 60.0
     969  periods      -timeout 1200
     970  npending     1
     971  active        false
     972
     973  stdout NULL
     974  stderr $LOGDIR/revert.log
     975
     976  task.exec
     977    if ($LABEL:n == 0) break
     978    $run = addtool -revertprocessedexp -stage fullforce_summary
     979    if ($DB:n == 0)
     980      option DEFAULT
     981    else
     982      # save the DB name for the exit tasks                                                                   
     983      option $DB:$addstar_revert_DB_FFS
     984      $run = $run -dbname $DB:$addstar_revert_DB_FFS
     985      $addstar_revert_DB_FFS ++
     986      if ($addstar_revert_DB_FFS >= $DB:n) set addstar_revert_DB_FFS = 0
     987    end
     988     add_poll_labels run
     989    command $run
     990  end
     991
     992  # success                                                                                                   
     993  task.exit    0
     994  end
     995
     996  # locked list                                                                                               
     997  task.exit    default
     998    showcommand failure
     999  end
     1000
     1001  task.exit    crash
     1002    showcommand crash
     1003  end
     1004
     1005  # operation times out?                                                                                     
     1006  task.exit    timeout
     1007    showcommand timeout
     1008  end
     1009end
Note: See TracChangeset for help on using the changeset viewer.