IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33695


Ignore:
Timestamp:
Apr 4, 2012, 9:58:58 AM (14 years ago)
Author:
bills
Message:

checking in some changes that have been running for awhile

Location:
tags/ipp-20120216/ippTasks
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tags/ipp-20120216/ippTasks/pstamp.pro

    r32946 r33695  
    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
  • tags/ipp-20120216/ippTasks/science.cleanup.pro

    r31854 r33695  
    114114
    115115  task.exec
    116     periods -exec $RUNEXEC
    117116
    118117    book npages chipPendingCleanup -var N
    119     if ($N == 0) break
     118    if ($N == 0)
     119        periods -exec $RUNEXEC
     120        break
     121    end
    120122    if ($NETWORK == 0) break
    121123   
Note: See TracChangeset for help on using the changeset viewer.