30 lines
679 B
Perl
Executable file
30 lines
679 B
Perl
Executable file
#!/usr/bin/perl
|
|
#
|
|
# bin/worker/dw-distribute-invites
|
|
#
|
|
# DW::TaskQueue worker for invite code distribution.
|
|
#
|
|
# Authors:
|
|
# Mark Smith <mark@dreamwidth.org>
|
|
#
|
|
# Copyright (c) 2009-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::DistributeInvites',
|
|
message_timeout_secs => 600,
|
|
exit_after_secs => 300 + int( rand() * 600 ),
|
|
);
|