IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28982 for trunk/ippTasks


Ignore:
Timestamp:
Aug 19, 2010, 11:26:51 PM (16 years ago)
Author:
watersc1
Message:

Bug fix to add confirm stacks mode and macro code to nightly_stacks.pro

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/nightly_stacks.pro

    r28887 r28982  
    8888    active true
    8989  end
     90  task ns.stacks.confirm
     91    active true
     92  end
    9093end
    9194
     
    155158$ns_stackPAGE = 0
    156159$ns_RstackPAGE = 0
     160$ns_CstackPAGE = 0
    157161
    158162book init nsData
     
    431435    end
    432436
     437    book getword nsData $options:0 nsNmacros -var ns_Nmacros
     438    for i 0 $ns_Nmacros
     439        sprintf macroName "ns%dMacro" $i
     440        book getword nsData $options:0 $macroName -var macroCmd
     441        $macroCmd
     442    end
     443
    433444    if ($VERBOSE > 2)
    434445        book listbook nsData
     
    486497    ipptool2book stdout nsData -uniq -key date
    487498
     499    book getword nsData $options:0 nsNmacros -var ns_Nmacros
     500    for i 0 $ns_Nmacros
     501        sprintf macroName "ns%dMacro" $i
     502        book getword nsData $options:0 $macroName -var macroCmd
     503        $macroCmd
     504    end
     505
    488506    if ($VERBOSE > 2)
    489507        book listbook nsData
     
    541559    ipptool2book stdout nsData -uniq -key date
    542560
     561    book getword nsData $options:0 nsNmacros -var ns_Nmacros
     562    for i 0 $ns_Nmacros
     563        sprintf macroName "ns%dMacro" $i
     564        book getword nsData $options:0 $macroName -var macroCmd
     565        $macroCmd
     566    end
     567
    543568    if ($VERBOSE > 2)
    544569        book listbook nsData
     
    562587# Check to see if the warps are finished and so we can make stacks.
    563588#
     589
    564590task              ns.stacks.run
    565591  host            local
     
    595621# We've queued up stacking. We're done with this date, so don't reload the page.
    596622    ipptool2book stdout nsData -uniq -key date
     623
     624    book getword nsData $options:0 nsNmacros -var ns_Nmacros
     625    for i 0 $ns_Nmacros
     626        sprintf macroName "ns%dMacro" $i
     627        book getword nsData $options:0 $macroName -var macroCmd
     628        $macroCmd
     629    end
     630
     631    if ($VERBOSE > 2)
     632        book listbook nsData
     633    end
     634  end
     635
     636  # locked list
     637  task.exit    default
     638    showcommand failure
     639  end
     640  task.exit    crash
     641    showcommand crash
     642  end
     643  #operation times out?
     644  task.exit    timeout
     645    showcommand timeout
     646  end
     647end
     648
     649#
     650# Confirm that all the stacks that can be built have been built, or at least attempted.
     651#
     652task              ns.stacks.confirm
     653  host            local
     654  periods         -poll $LOADPOLL
     655  periods         -exec $LOADEXEC
     656  periods         -timeout 120
     657  npending        1
     658
     659  task.exec
     660     stdout NULL
     661     stderr $LOGDIR/ns.stacks.log
     662
     663     book getpage nsData $ns_CstackPAGE -var date
     664     book getword nsData $date nsState -var ns_STATE
     665     book npages nsData -var Npages
     666
     667     if ($VERBOSE > 5)
     668        echo "ns.stacks.confirm: " $ns_CstackPAGE $date $ns_STATE $Npages
     669     end
     670
     671     $ns_CstackPAGE ++
     672     if ($ns_CstackPAGE >= $Npages) set ns_CstackPAGE = 0
     673     option $date
     674
     675     if ("$ns_STATE" != "STACKING") break
     676     $run = automate_stacks.pl --confirm_stacks --date $date
     677     command $run
     678   end
     679  # success
     680  task.exit   0
     681#    convert 'stdout' to book format
     682    book delpage nsData $options:0
     683    ipptool2book stdout nsData -uniq -key date
     684
     685    book getword nsData $options:0 nsNmacros -var ns_Nmacros
     686    for i 0 $ns_Nmacros
     687        sprintf macroName "ns%dMacro" $i
     688        book getword nsData $options:0 $macroName -var macroCmd
     689        $macroCmd
     690    end
     691
    597692    if ($VERBOSE > 2)
    598693        book listbook nsData
     
    650745    ipptool2book stdout nsBurntool -uniq -key date
    651746    book setword nsData $options:0 nsState "QUEUEBURNING"
     747
     748    book getword nsData $options:0 nsNmacros -var ns_Nmacros
     749    for i 0 $ns_Nmacros
     750        sprintf macroName "ns%dMacro" $i
     751        book getword nsData $options:0 $macroName -var macroCmd
     752        $macroCmd
     753    end
    652754
    653755    if ($VERBOSE > 2)
     
    766868    # Set the job state for success.
    767869    book setword nsBurntool $options:0 $options:2 FINISHED
     870
     871    book getword nsData $options:0 nsNmacros -var ns_Nmacros
     872    for i 0 $ns_Nmacros
     873        sprintf macroName "ns%dMacro" $i
     874        book getword nsData $options:0 $macroName -var macroCmd
     875        $macroCmd
     876    end
     877
    768878    if ($VERBOSE > 2)
    769879        book listbook nsData
Note: See TracChangeset for help on using the changeset viewer.