IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 16, 2010, 3:31:29 PM (16 years ago)
Author:
heather
Message:

oops... this is the correct dist.pro (for reverts)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/dist.pro

    r26961 r26962  
    5555    active true
    5656  end
    57   task diff.revert
     57  task dist.revert
    5858    active false
    5959  end
     
    7373    active false
    7474  end
    75   task diff.revert
    76     active false
    77   end
    78 end
     75  task dist.revert
     76    active false
     77  end
     78end
     79
     80macro dist.revert.on
     81  task dist.revert
     82    active true
     83  end
     84end
     85
     86macro dist.revert.off
     87  task dist.revert
     88    active false
     89  end
     90end
     91
    7992
    8093macro set.dist.workdir.by.component
     
    128141    #echo outdir is $$varname
    129142end
     143
     144$dist_revert_DB = 0
     145
    130146
    131147task           dist.process.load
     
    400416  end
    401417end
     418
     419task chip.revert
     420  host         local
     421
     422  periods      -poll 5.0
     423  periods      -exec 60.0
     424  periods      -timeout 120.0
     425  npending     1
     426
     427  stdout NULL
     428  stderr $LOGDIR/revert.log
     429
     430  task.exec
     431    if ($LABEL:n == 0) break
     432    $run = disttool -revertcomponent
     433    if ($DB:n == 0)
     434      option DEFAULT
     435    else
     436      # save the DB name for the exit tasks
     437      option $DB:$dist_revert_DB
     438      $run = $run -dbname $DB:$dist_revert_DB
     439      $chip_revert_DB ++
     440      if ($dist_revert_DB >= $DB:n) set dist_revert_DB = 0
     441    end
     442    add_poll_labels run
     443    command $run
     444  end
     445
     446  # success
     447  task.exit    0
     448  end
     449
     450  # locked list
     451  task.exit    default
     452    showcommand failure
     453  end
     454
     455  task.exit    crash
     456    showcommand crash
     457  end
     458
     459  # operation times out?
     460  task.exit    timeout
     461    showcommand timeout
     462  end
     463end
Note: See TracChangeset for help on using the changeset viewer.