IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 29145


Ignore:
Timestamp:
Sep 10, 2010, 1:19:09 PM (16 years ago)
Author:
bills
Message:

add pstamp.revert.dependent

File:
1 edited

Legend:

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

    r28779 r29145  
    1414$pstampRev_DB = 0
    1515$pstampDep_DB = 0
     16$pstampRevDep_DB = 0
    1617$pstampCleanup_DB = 0
    1718
     
    104105        active true
    105106    end
     107    task pstamp.dependent.revert
     108        active true
     109    end
    106110end
    107111macro pstamp.revert.off
    108112    task pstamp.job.revert
     113        active false
     114    end
     115    task pstamp.dependent.revert
    109116        active false
    110117    end
     
    513520        stdout NULL
    514521        stderr $LOGSUBDIR/pstamp.job.revert.log
    515         $run = pstamptool -revertjob -all
     522        $run = pstamptool -revertjob
    516523        if ($DB:n == 0)
    517524            option DEFAULT
     
    798805end
    799806
     807task pstamp.dependent.revert
     808    host        local
     809
     810    periods     -poll $LOADPOLL
     811    periods     -exec 900
     812    periods     -timeout 300
     813    npending    1
     814
     815    task.exec
     816        stdout NULL
     817        stderr $LOGSUBDIR/pstamp.dependent.revert.log
     818        $run = pstamptool -revertdependent
     819        if ($DB:n == 0)
     820            option DEFAULT
     821        else
     822            $run = $run $PS_DBSERVER -dbname $DB:$pstampRevDep_DB
     823            $pstampRevDep_DB ++
     824            if ($pstampRevDep_DB >= $DB:n) set pstampRevDep_DB = 0
     825        end
     826        add_poll_args run
     827        add_poll_labels run
     828        command $run
     829    end
     830
     831    task.exit $EXIT_SUCCESS
     832        # nothing to do
     833    end
     834
     835    task.exit   default
     836        showcommand failure
     837    end
     838
     839    task.exit   crash
     840        showcommand crash
     841    end
     842
     843    task.exit   timeout
     844        showcommand timeout
     845    end
     846end
Note: See TracChangeset for help on using the changeset viewer.