IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 36634


Ignore:
Timestamp:
Apr 2, 2014, 12:12:37 PM (12 years ago)
Author:
bills
Message:

add task to run a script to queue requests older than 14 days for cleanup.
A configuration variable PSTAMP_PRESERVE_DAYS may be set to change the number of days.

Location:
trunk
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/pstamp.pro

    r36476 r36634  
    152152        active true
    153153    end
     154    task pstamp.queue.cleanup
     155        active true
     156    end
    154157end
    155158macro pstamp.cleanup.off
     
    158161    end
    159162    task pstamp.cleanup.run
     163        active false
     164    end
     165    task pstamp.queue.cleanup
    160166        active false
    161167    end
     
    11191125    end
    11201126end
     1127
     1128task pstamp.queue.cleanup
     1129    host        local
     1130
     1131    periods     -poll $RUNPOLL
     1132    periods     -exec 600
     1133    periods     -timeout 120
     1134    npending    1
     1135
     1136    task.exec
     1137        stdout NULL
     1138        stderr $LOGSUBDIR/pstamp.queue.cleanup.log
     1139
     1140        $run = pstamp_queue_cleanup.pl
     1141        command $run
     1142    end
     1143
     1144    task.exit $EXIT_SUCCESS
     1145        # echo nothing to do
     1146    end
     1147
     1148    task.exit   default
     1149        showcommand failure
     1150    end
     1151
     1152    task.exit   crash
     1153        showcommand crash
     1154    end
     1155
     1156    task.exit   timeout
     1157        showcommand timeout
     1158    end
     1159end
  • trunk/pstamp/scripts/Makefile.am

    r35901 r36634  
    1111        pstampparse.pl \
    1212        pstamp_parser_run.pl \
     13        pstamp_queue_cleanup.pl \
    1314        pstamp_queue_requests.pl \
    1415        pstamp_request_file \
Note: See TracChangeset for help on using the changeset viewer.