madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r23275: LJSUP-14210: TheSchwartz should be able ...

Committer: sbelyaev
LJSUP-14210: TheSchwartz should be able to use custom limit for jobs [internal]
U   trunk/cgi-bin/LJ/NewWorker/TheSchwartz.pm
Modified: trunk/cgi-bin/LJ/NewWorker/TheSchwartz.pm
===================================================================
--- trunk/cgi-bin/LJ/NewWorker/TheSchwartz.pm	2012-11-09 08:35:08 UTC (rev 23274)
+++ trunk/cgi-bin/LJ/NewWorker/TheSchwartz.pm	2012-11-09 09:06:42 UTC (rev 23275)
@@ -27,6 +27,7 @@
         "-r | --schwartz-role=role  connect to db with specified role (defualt is '$schwartz_role')\n";
 }
 
+sub find_job_limit  { }
 sub capabilities    { }
 sub on_idle         { }
 sub on_afterwork    { }
@@ -47,6 +48,7 @@
 
     $sclient = LJ::theschwartz({ role => $schwartz_role }) or die "Could not get schwartz client";
     $sclient->set_verbose( $class->schwartz_verbose_handler || $class->verbose );
+    $sclient->set_find_job_limit( $class->find_job_limit );
     foreach my $classname ($class->capabilities) {
         warn "The Schwartz run(): can_do('$classname').\n" if $verbose;
         $sclient->can_do($classname);

Tags: livejournal, madeon, pm, sbelyaev
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments