IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 31, 2012, 4:55:25 PM (14 years ago)
Author:
heather
Message:

skycal stage for addstar

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/addstar.pro

    r33989 r34265  
    2424  end
    2525  task addstar.exp.load.staticsky
     26    active true 
     27  end
     28  task addstar.exp.load.skycal
    2629    active true
    2730  end
     
    4144    active false
    4245  end
     46  task addstar.exp.load.skycal
     47    active false
     48  end
    4349  task addstar.exp.run
    4450    active false
     
    5056    active false
    5157  end
    52  task addstar.revert.stack
    53     active false
    54   end
    55  task addstar.revert.staticsky
    56     active false
    57   end
    58 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.skycal
     65    active false
     66  end
     67end
     68
    5969macro addstar.revert.on
    6070  task addstar.revert.cam
     
    6575  end
    6676  task addstar.revert.staticsky
     77    active true
     78  end
     79  task addstar.revert.skycal
    6780    active true
    6881  end
     
    7790$addstar_revert_DB_SS = 0
    7891$addstar_revert_DB_SSM = 0
     92$addstar_revert_DB_SC = 0
    7993
    8094$LOADEXEX_ADD = 300
     
    244258
    245259  # operation times out?
     260  task.exit    timeout
     261    showcommand timeout
     262  end
     263end
     264
     265task           addstar.exp.load.skycal
     266  host         local
     267  periods      -poll $LOADPOLL
     268  periods      -exec 300
     269  periods      -timeout 300
     270  npending     1
     271
     272  stdout NULL
     273  stderr $LOGDIR/addstar.exp.log
     274
     275  task.exec
     276   # if ($LABEL:n == 0) break                                                                                 
     277    $run = addtool -pendingexp -stage skycal
     278    if ($DB:n == 0)
     279      option DEFAULT
     280    else
     281      # save the DB name for the exit tasks                                                                   
     282      option $DB:$addstar_DB
     283      $run = $run -dbname $DB:$addstar_DB
     284      $addstar_DB ++
     285      if ($addstar_DB >= $DB:n) set addstar_DB = 0
     286    end
     287    add_poll_args run
     288    add_poll_labels run
     289    command $run
     290  end
     291
     292  # success                                                                                                   
     293  task.exit    0
     294    # convert 'stdout' to book format                                                                         
     295    ipptool2book stdout addPendingExp -key add_id -uniq -setword dbname $options:0 -setword pantaskState INIT
     296    if ($VERBOSE > 2)
     297      book listbook addPendingExp
     298    end
     299
     300    # delete existing entries in the appropriate pantaskStates                                               
     301    process_cleanup addPendingExp
     302  end
     303
     304  # default exit status                                                                                       
     305  task.exit    default
     306    showcommand failure
     307  end
     308
     309  task.exit    crash
     310    showcommand crash
     311  end
     312
     313  # operation times out?                                                                                     
    246314  task.exit    timeout
    247315    showcommand timeout
     
    311379        sprintf outroot "%s.add.%s" $STAGEROOT $ADD_ID
    312380    end
     381    if ("$STAGE" == "skycal")
     382        sprintf outroot "%s.add.%s" $STAGEROOT $ADD_ID
     383    end
     384
    313385 
    314386
     
    326398      $run = $run --stage_id $STAGE_ID
    327399    end
     400   if ("$STAGE" == "skycal")
     401      $run = $run --stage_id $STAGE_ID
     402    end
     403
     404
     405
    328406    if ("$IMAGE_ONLY" == "T")
    329407      $run = $run --image-only
     
    508586  end
    509587end
     588
     589task addstar.revert.skycal
     590  host         local
     591
     592  periods      -poll 5.0
     593  periods      -exec 60.0
     594  periods      -timeout 1200
     595  npending     1
     596  active        false
     597
     598  stdout NULL
     599  stderr $LOGDIR/revert.log
     600
     601  task.exec
     602    if ($LABEL:n == 0) break
     603    $run = addtool -revertprocessedexp -stage skycal
     604    if ($DB:n == 0)
     605      option DEFAULT
     606    else
     607      # save the DB name for the exit tasks                                                                   
     608      option $DB:$addstar_revert_DB_SC
     609      $run = $run -dbname $DB:$addstar_revert_DB_SC
     610      $addstar_revert_DB_SC ++
     611      if ($addstar_revert_DB_SC >= $DB:n) set addstar_revert_DB_SC = 0
     612    end
     613     add_poll_labels run
     614    command $run
     615  end
     616
     617  # success                                                                                                   
     618  task.exit    0
     619  end
     620
     621  # locked list                                                                                               
     622  task.exit    default
     623    showcommand failure
     624  end
     625
     626  task.exit    crash
     627    showcommand crash
     628  end
     629
     630  # operation times out?                                                                                     
     631  task.exit    timeout
     632    showcommand timeout
     633  end
     634end
Note: See TracChangeset for help on using the changeset viewer.