IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 36949


Ignore:
Timestamp:
Jul 1, 2014, 2:11:56 PM (12 years ago)
Author:
watersc1
Message:

dbname options

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tags/ipp-pv3-20140616/ippTasks/remote.pro

    r36852 r36949  
    1010
    1111$remote_label_iter = 0
     12$remote_label_iter2 = 0
    1213$remote_stage_iter = 0
    1314$remoteP_DB = 0
     
    1819  chip
    1920  camera
    20   warp
     21#  warp
    2122  stack
    2223end
    2324
    24 task          remote.define.chip
     25macro  remote.off
     26  task  remote.define
     27    active false
     28  end
     29  task  remote.define.warp
     30    active false
     31  end
     32  task  remote.prep.load
     33    active false
     34  end
     35  task  remote.prep.run
     36    active false
     37  end
     38  task  remote.exec.load
     39    active false
     40  end
     41  task  remote.exec.run
     42    active false
     43  end
     44  task  remote.poll.load
     45    active false
     46  end
     47  task  remote.poll.run
     48    active false
     49  end
     50end
     51
     52macro  remote.on
     53  task  remote.define
     54    active true
     55  end
     56  task  remote.define.warp
     57    active true
     58  end
     59  task  remote.prep.load
     60    active true
     61  end
     62  task  remote.prep.run
     63    active true
     64  end
     65  task  remote.exec.load
     66    active true
     67  end
     68  task  remote.exec.run
     69    active true
     70  end
     71  task  remote.poll.load
     72    active true
     73  end
     74  task  remote.poll.run
     75    active true
     76  end
     77end
     78
     79
     80task          remote.define
    2581  host        local
    2682  periods     -poll $LOADPOLL
     
    46102
    47103    $run = remotetool -definebyquery -label $label -stage $stage -path_base neb://@HOST@.0/remote/$label
     104    if ($DB:n == 0)
     105      option DEFAULT
     106    else
     107      option $DB:$remoteP_DB
     108      $run = $run -dbname $DB:$remoteP_DB
     109      $remoteP_DB ++
     110      if ($remoteP_DB >= $DB:n) set remoteP_DB = 0
     111    end
     112
    48113    echo $run
    49114    command $run
     
    66131end
    67132
     133task          remote.define.warp
     134  host        local
     135  periods     -poll $LOADPOLL
     136  periods     -exec 1800
     137  periods     -timeout 30
     138  npending    1
     139
     140  task.exec
     141    stdout NULL
     142    stderr $LOGDIR/remote.define.chip
     143
     144    $label = $LABEL:$remote_label_iter2
     145
     146    if ($remote_label_iter >= $LABEL:n) set remote_label_iter = 0
     147    echo  $remote_label_iter $label warp
     148
     149    $run = remotetool -definebyquery -label $label -stage warp -path_base neb://@HOST@.0/remote/$label
     150    if ($DB:n == 0)
     151      option DEFAULT
     152    else
     153      option $DB:$remoteP_DB
     154      $run = $run -dbname $DB:$remoteP_DB
     155      $remoteP_DB ++
     156      if ($remoteP_DB >= $DB:n) set remoteP_DB = 0
     157    end
     158
     159    echo $run
     160    command $run
     161   
     162  end
     163    # success
     164  task.exit  0
     165  end
     166  # locked list                                                                                                                                   
     167  task.exit    default
     168    showcommand failure
     169  end
     170  task.exit    crash
     171    showcommand crash
     172  end
     173  #operation times out?                                                                                                                           
     174  task.exit    timeout
     175    showcommand timeout
     176  end
     177end
    68178
    69179task         remote.prep.load
Note: See TracChangeset for help on using the changeset viewer.