]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1449168 - Remove warning --function from jobqueue worker
authorDylan William Hardison <dylan@hardison.net>
Wed, 28 Mar 2018 14:14:40 +0000 (10:14 -0400)
committerGitHub <noreply@github.com>
Wed, 28 Mar 2018 14:14:40 +0000 (10:14 -0400)
Bugzilla/JobQueue/Runner.pm

index 1c74bc28fe6da201704bd5b31cfd8dbb52c98534..5cf7d82eba4578b24623925b778b8db4fc85c048 100644 (file)
@@ -211,7 +211,7 @@ sub gd_run {
     my $self      = shift;
     my $jobs      = $self->{gd_args}{jobs} // 1;
     my $signal_f  = $self->{_signal_future};
-    my $workers_f = fmap_void { $self->run_worker("work") }
+    my $workers_f = fmap_void { $self->run_worker() }
         concurrent => $jobs,
         generate   => sub { !$signal_f->is_ready };
 
@@ -225,10 +225,10 @@ sub gd_run {
 # This executes the script "jobqueue-worker.pl"
 # $EXECUTABLE_NAME is the name of the perl interpreter.
 sub run_worker {
-    my ( $self, $fn ) = @_;
+    my ( $self ) = @_;
 
     my $script = catfile( bz_locations->{cgi_path}, 'jobqueue-worker.pl' );
-    my @command = ( $EXECUTABLE_NAME, $script, '--function' => $fn );
+    my @command = ( $EXECUTABLE_NAME, $script);
     if ( $self->{gd_args}{progname} ) {
         push @command, '--name' => "$self->{gd_args}{progname} [worker]";
     }