mourningdove/bin/worker/dw-import-eraser

31 lines
670 B
Text
Raw Normal View History

2026-05-24 01:03:05 +00:00
#!/usr/bin/perl
#
# bin/worker/dw-import-eraser
#
# DW::TaskQueue worker for erasing imported content.
#
# Authors:
# Mark Smith <mark@dreamwidth.org>
#
# Copyright (c) 2012-2026 by Dreamwidth Studios, LLC.
#
# This program is free software; you may redistribute it and/or modify it under
# the same terms as Perl itself. For a copy of the license, please reference
# 'perldoc perlartistic' or 'perldoc perlgpl'.
#
use v5.10;
use strict;
BEGIN {
require "$ENV{LJHOME}/cgi-bin/ljlib.pl";
}
use DW::TaskQueue;
DW::TaskQueue->start_work(
'DW::Task::ImportEraser',
message_timeout_secs => 3600,
exit_after_secs => 300 + int( rand() * 600 ),
);