IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 27213


Ignore:
Timestamp:
Mar 5, 2010, 2:12:03 PM (16 years ago)
Author:
watersc1
Message:

Muddling through some more logic to get the burntool->chip handoff working correctly. This should be right:

if I'm the last chip, then I need to set the state to BURNING before I do anything, in case I fail.
if my counter says I'm beyond the last chip, I need to reset that to zero.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/nightly_stacks.pro

    r27209 r27213  
    549549        $new_state = "BURNING"
    550550    end
    551     if ($btNcounter >= $btN)
     551    if ($btNcounter + 1 > $btN)
    552552        $new_state = "BURNING"
    553         $btNcounter = 0
     553    end
     554    if ($btNcounter > $btN)
     555        $btNcounter = 0
    554556    end
    555557    if ($VERBOSE > 5)
     
    560562    $counter_update = $btNcounter + 1
    561563    book setword nsBurntool $date btNCounter $counter_update
     564    book setword nsData $options:0 nsState $options:1
    562565
    563566    # Get the current status of this job, and skip if it doesn't need to process.
     
    602605#    convert 'stdout' to book format
    603606    # Set data state based on if we're queueing or waiting
    604     book setword nsData $options:0 nsState $options:1
    605607    # Set the job state for success.
    606608    book setword nsBurntool $options:0 $options:2 FINISHED
Note: See TracChangeset for help on using the changeset viewer.