IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 38586 for trunk/ippTasks


Ignore:
Timestamp:
Jul 14, 2015, 1:54:16 PM (11 years ago)
Author:
bills
Message:

Add a task to queue cleanup of images that have been updated for postage stamp requests.
It runs twice a day and discovers whether or not there are any unfinished postage stamp
dependents. If not queues all of the chip, warp, and diff runs in gpc1 database with label like ps_ud%
to be cleaned. If there are outstanding dependents it does not queue the updates since we don't
want to cause problems with the postage stamp jobs that are depending on them.
This should be much better than the formerly manual process which got done whenever Bill happened to think of it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/pstamp.pro

    r36913 r38586  
    1818$pstampCleanup_DB = 0
    1919$pstampStopFaulted_DB = 0
     20$pstampQCleanup_DB = 0
    2021
    2122# give up on dependents with fault_count >= $PSTAMP_MAX_FAULT_COUNT
     
    12121213    end
    12131214end
     1215
     1216task pstamp.queue.update.cleanup
     1217    host        local
     1218    trange      22:00:00 23:59:59 -nmax 2
     1219    periods     -poll $RUNPOLL
     1220    periods     -exec 3600
     1221    periods     -timeout 120
     1222    npending    1
     1223
     1224    task.exec
     1225        stdout NULL
     1226        stderr $LOGSUBDIR/pstamp.queue.update.cleanup.log
     1227
     1228        $DBNAME = $DB:$pstampQCleanup_DB
     1229        $pstampQCleanup_DB++
     1230        if ($pstampQCleanup_DB >= $DB:n) set pstampQCleanup_DB = 0
     1231
     1232        $run = pstamp_queue_update_cleanup.pl  -$PS_DBSERVER --imagedb gpc1 --label ps_ud%
     1233        add_standard_args run
     1234        echo $run
     1235        command $run
     1236    end
     1237
     1238    task.exit $EXIT_SUCCESS
     1239        # echo nothing to do
     1240    end
     1241
     1242    task.exit   default
     1243        showcommand failure
     1244    end
     1245
     1246    task.exit   crash
     1247        showcommand crash
     1248    end
     1249
     1250    task.exit   timeout
     1251        showcommand timeout
     1252    end
     1253end
Note: See TracChangeset for help on using the changeset viewer.