IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 19074


Ignore:
Timestamp:
Aug 14, 2008, 3:27:43 PM (18 years ago)
Author:
eugene
Message:

fixed diffCleanup book names

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20080806/ippTasks/diff.pro

    r18945 r19074  
    88check.globals
    99
    10 $LOGSUBDIR = $LOGDIR/diff
    11 exec mkdir -p $LOGSUBDIR
    12 
    1310### Initialise the books containing the tasks to do
    1411book init diffSkyfile
     12book init diffCleanup
    1513
    1614### Database lists
     
    7472
    7573  stdout NULL
    76   stderr $LOGSUBDIR/diff.skycell.log
     74  stderr $LOGDIR/diff.skycell.log
    7775
    7876  task.exec
     
    137135
    138136    ### XXX Instead of setting these by camera, need to set by skycell_id
     137    ### XXX change these to use the --redirect scheme
    139138#    set.host.for.camera $CAMERA $DIFF_ID
    140139#    set.workdir.by.camera $CAMERA $DIFF_ID $WORKDIR_TEMPLATE $default_host WORKDIR
     
    203202    else
    204203      # save the DB name for the exit tasks
    205       option $DB:$diff_cleanup_DB
    206       command difftool -pendingcleanuprun -limit 20 -dbname $DB:$diff_cleanup_DB
    207       $diff_cleanup_DB ++
    208       if ($diff_cleanup_DB >= $DB:n) set diff_cleanup_DB = 0
     204      option $DB:$diffCleanup_DB
     205      command difftool -pendingcleanuprun -limit 20 -dbname $DB:$diffCleanup_DB
     206      $diffCleanup_DB ++
     207      if ($diffCleanup_DB >= $DB:n) set diffCleanup_DB = 0
    209208    end
    210209  end
     
    213212  task.exit    0
    214213    # convert 'stdout' to book format
    215     ipptool2book stdout diffPendingCleanup -key diff_id -uniq -setword dbname $options:0 -setword pantaskState INIT
     214    ipptool2book stdout diffCleanup -key diff_id -uniq -setword dbname $options:0 -setword pantaskState INIT
    216215    if ($VERBOSE > 2)
    217       book listbook diffPendingCleanup
     216      book listbook diffCleanup
    218217    end
    219218
    220219    # delete existing entries in the appropriate pantaskStates
    221     process_cleanup diffPendingCleanup
     220    process_cleanup diffCleanup
    222221  end
    223222
     
    241240
    242241  task.exec
    243     book npages diffPendingCleanup -var N
     242    book npages diffCleanup -var N
    244243    if ($N == 0) break
    245244    if ($NETWORK == 0) break
    246245   
    247     # look for new images in diffPendingCleanup (pantaskState == INIT)
    248     book getpage diffPendingCleanup 0 -var pageName -key pantaskState INIT
     246    # look for new images in diffCleanup (pantaskState == INIT)
     247    book getpage diffCleanup 0 -var pageName -key pantaskState INIT
    249248    if ("$pageName" == "NULL") break
    250249
    251     book setword diffPendingCleanup $pageName pantaskState RUN
    252     book getword diffPendingCleanup $pageName camera -var CAMERA
    253     book getword diffPendingCleanup $pageName state -var CLEANUP_MODE
    254     book getword diffPendingCleanup $pageName diff_id -var DIFF_ID
    255     book getword diffPendingCleanup $pageName dbname -var DBNAME
     250    book setword diffCleanup $pageName pantaskState RUN
     251    book getword diffCleanup $pageName camera -var CAMERA
     252    book getword diffCleanup $pageName state -var CLEANUP_MODE
     253    book getword diffCleanup $pageName diff_id -var DIFF_ID
     254    book getword diffCleanup $pageName dbname -var DBNAME
    256255
    257256    # specify choice of local or remote host based on camera and diff (class_id)
     
    277276  # default exit status
    278277  task.exit    default
    279     process_exit diffPendingCleanup $options:0 $JOB_STATUS
     278    process_exit diffCleanup $options:0 $JOB_STATUS
    280279  end
    281280
     
    283282  task.exit    timeout
    284283    showcommand timeout
    285     book setword diffPendingCleanup $options:0 pantaskState TIMEOUT
    286   end
    287 end
     284    book setword diffCleanup $options:0 pantaskState TIMEOUT
     285  end
     286end
Note: See TracChangeset for help on using the changeset viewer.