IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 3, 2012, 4:09:03 PM (14 years ago)
Author:
bills
Message:

changes to postage stamp task timing (has been running in tag for awhile now)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/pstamp.pro

    r32946 r33671  
    201201end
    202202
     203echo DEFINING PLABEL stuff
     204# keep a separate list of labels for request parsing
     205if ($?PLABEL:n == 0)      set PLABEL:n = 0
     206set PLABEL:n = 0
     207
     208macro add.parse.label
     209  if ($0 != 2)
     210    echo "USAGE: add.parse.label (label)"
     211    break
     212  end
     213  if ($?PLABEL:n == 0)
     214    list PLABEL -add $1
     215    return
     216  end
     217
     218  local found
     219  $found = 0
     220  for i 0 $PLABEL:n
     221    if ($PLABEL:$i == $1)
     222      $found = 1
     223      echo "$PLABEL:$i set"
     224      last
     225    end
     226  end
     227 
     228  if ($found == 0)
     229    list PLABEL -add $1
     230  end
     231end
     232
     233
     234macro del.parse.label
     235  if ($0 != 2)
     236    echo "USAGE: del.parse.label (label)"
     237    break
     238  end
     239  if ($?PLABEL:n == 0)
     240    return
     241  end
     242
     243  list PLABEL -del $1
     244end
     245
     246macro show.parse.labels
     247  if ($0 != 1)
     248    echo "USAGE: show.parse.labels"
     249    break
     250  end
     251  if ($?PLABEL:n == 0)
     252    echo "no labels defined"
     253  end
     254  if ($PLABEL:n == 0)
     255    echo "no labels defined"
     256  end
     257
     258  local i
     259  for i 0 $PLABEL:n
     260    echo $PLABEL:$i
     261  end
     262end
     263
     264macro add_parse_labels
     265    if ($0 != 2)
     266        echo "Must pass in the command of interest, and this function will supplement"
     267        stop
     268    end
     269
     270    local command i
     271
     272    $command = $$1
     273
     274    # Only process the data with the specified label.
     275    for i 0 $PLABEL:n
     276      $command = $command -label $PLABEL:$i
     277    end
     278
     279    $$1 = $command
     280end
     281
     282echo DONE defineing plabel stuf
     283
    203284task pstamp.request.find
    204285    host        local
     
    261342        end
    262343        add_poll_args run
    263         add_poll_labels run
     344        # add_poll_labels run
     345        add_parse_labels run
    264346        # limit number of requests in the queue to avoid blocking everything
    265347        # when jobs take an infinite amount of time to parse
     
    9611043
    9621044    periods     -poll $LOADPOLL
    963     periods     -exec 90
    964     periods     -timeout 20
     1045    periods     -exec 60
     1046    periods     -timeout 120
    9651047    npending    1
    9661048
Note: See TracChangeset for help on using the changeset viewer.