mourningdove/bin/worker/content-importer-lite

43 lines
1.5 KiB
Text
Raw Normal View History

2026-05-24 01:03:05 +00:00
#!/usr/bin/perl
#
# content-importer-lite
#
# Dispatches TheSchwartz jobs to actually handle content imports. This is a
# trimmed down version that only handles some of the jobs, so we have something
# running all the time doing quick things we can do easily.
#
# Authors:
# Andrea Nall <anall@andreanall.com>
# Mark Smith <mark@dreamwidth.org>
#
# Copyright (c) 2009 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 strict;
BEGIN {
require "$ENV{LJHOME}/cgi-bin/ljlib.pl";
}
use LJ::Worker::TheSchwartz;
use DW::Worker::ContentImporter::LiveJournal::Bio;
use DW::Worker::ContentImporter::LiveJournal::FriendGroups;
use DW::Worker::ContentImporter::LiveJournal::Friends;
use DW::Worker::ContentImporter::LiveJournal::Tags;
use DW::Worker::ContentImporter::LiveJournal::Userpics;
use DW::Worker::ContentImporter::UserPictures;
schwartz_decl( "DW::Worker::ContentImporter::LiveJournal::Bio" );
schwartz_decl( "DW::Worker::ContentImporter::LiveJournal::FriendGroups" );
schwartz_decl( "DW::Worker::ContentImporter::LiveJournal::Friends" );
schwartz_decl( "DW::Worker::ContentImporter::LiveJournal::Tags" );
schwartz_decl( "DW::Worker::ContentImporter::LiveJournal::Userpics" );
schwartz_decl( "DW::Worker::ContentImporter::UserPictures" );
$0 = 'content-importer [bored]';
schwartz_work();