IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 19, 2012, 10:36:06 AM (14 years ago)
Author:
bills
Message:

add pstamp.request.revert

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/pstamp.pro

    r33671 r33810  
    1313$pstampFin_DB = 0
    1414$pstampRev_DB = 0
     15$pstampRevReq_DB = 0
    1516$pstampDep_DB = 0
    1617$pstampRevDep_DB = 0
     
    117118
    118119macro pstamp.revert.on
     120    task pstamp.request.revert
     121        active true
     122    end
    119123    task pstamp.job.revert
    120124        active true
     
    128132end
    129133macro pstamp.revert.off
     134    task pstamp.request.revert
     135        active false
     136    end
    130137    task pstamp.job.revert
    131138        active false
     
    662669end
    663670
     671task pstamp.request.revert
     672    host        local
     673
     674    periods     -poll $LOADPOLL
     675    periods     -exec 1200
     676    periods     -timeout 20
     677    npending    1
     678
     679    task.exec
     680        stdout NULL
     681        stderr $LOGSUBDIR/pstamp.request.revert.log
     682        $run = pstamptool -revertreq
     683        if ($DB:n == 0)
     684            option DEFAULT
     685        else
     686            $run = $run $PS_DBSERVER -dbname $DB:$pstampRevReq_DB
     687            $pstampRevReq_DB ++
     688            if ($pstampRevReq_DB >= $DB:n) set pstampRevReq_DB = 0
     689        end
     690        add_poll_args run
     691        add_poll_labels run
     692        command $run
     693    end
     694
     695    task.exit $EXIT_SUCCESS
     696        # nothing to do
     697    end
     698
     699    task.exit   default
     700        showcommand failure
     701    end
     702
     703    task.exit   crash
     704        showcommand crash
     705    end
     706
     707    task.exit   timeout
     708        showcommand timeout
     709    end
     710end
    664711task pstamp.job.revert
    665712    host        local
Note: See TracChangeset for help on using the changeset viewer.