IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 21, 2010, 2:45:13 PM (16 years ago)
Author:
eugene
Message:

merge changes from trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20100823/ippTasks/pstamp.pro

    r28779 r29515  
    1414$pstampRev_DB = 0
    1515$pstampDep_DB = 0
     16$pstampRevDep_DB = 0
    1617$pstampCleanup_DB = 0
     18$pstampStopFaulted_DB = 0
    1719
    1820# set PS_DBSERVER if postage stamp database host is not the same as the value for DBSERVER in site.config
     
    8991        active false
    9092    end
    91     task pstamp.job.revert
    92         active false
    93     end
    9493    task pstamp.dependent.load
    9594        active false
     
    104103        active true
    105104    end
     105    task pstamp.dependent.revert
     106        active true
     107    end
     108    task pstamp.stopfaulted
     109        active true
     110    end
    106111end
    107112macro pstamp.revert.off
    108113    task pstamp.job.revert
     114        active false
     115    end
     116    task pstamp.dependent.revert
     117        active false
     118    end
     119    task pstamp.stopfaulted
    109120        active false
    110121    end
     
    513524        stdout NULL
    514525        stderr $LOGSUBDIR/pstamp.job.revert.log
    515         $run = pstamptool -revertjob -all
     526        $run = pstamptool -revertjob
    516527        if ($DB:n == 0)
    517528            option DEFAULT
     
    798809end
    799810
     811task pstamp.dependent.revert
     812    host        local
     813
     814    periods     -poll $LOADPOLL
     815    periods     -exec 900
     816    periods     -timeout 300
     817    npending    1
     818
     819    task.exec
     820        stdout NULL
     821        stderr $LOGSUBDIR/pstamp.dependent.revert.log
     822        $run = pstamptool -revertdependent
     823        if ($DB:n == 0)
     824            option DEFAULT
     825        else
     826            $run = $run $PS_DBSERVER -dbname $DB:$pstampRevDep_DB
     827            $pstampRevDep_DB ++
     828            if ($pstampRevDep_DB >= $DB:n) set pstampRevDep_DB = 0
     829        end
     830        add_poll_args run
     831        add_poll_labels run
     832        command $run
     833    end
     834
     835    task.exit $EXIT_SUCCESS
     836        # nothing to do
     837    end
     838
     839    task.exit   default
     840        showcommand failure
     841    end
     842
     843    task.exit   crash
     844        showcommand crash
     845    end
     846
     847    task.exit   timeout
     848        showcommand timeout
     849    end
     850end
     851
     852task pstamp.stopfaulted
     853    host        local
     854
     855    periods     -poll $LOADPOLL
     856    periods     -exec 30
     857    periods     -timeout 300
     858    npending    1
     859
     860    task.exec
     861        stderr $LOGSUBDIR/pstamp.stopfaulted.log
     862        stderr $LOGSUBDIR/pstamp.stopfaulted.log
     863        $run = pstampstopfaulted
     864        if ($DB:n == 0)
     865            option DEFAULT
     866        else
     867            $run = $run $PS_DBSERVER -dbname $DB:$pstampStopFaulted_DB
     868            $pstampStopFaulted_DB ++
     869            if ($pstampStopFaulted_DB >= $DB:n) set pstampStopFaulted_DB = 0
     870        end
     871        add_poll_args run
     872        add_poll_labels run
     873        command $run
     874    end
     875
     876    task.exit $EXIT_SUCCESS
     877        # nothing to do
     878    end
     879
     880    task.exit   default
     881        showcommand failure
     882    end
     883
     884    task.exit   crash
     885        showcommand crash
     886    end
     887
     888    task.exit   timeout
     889        showcommand timeout
     890    end
     891end
Note: See TracChangeset for help on using the changeset viewer.