summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2018-03-28 16:14:40 +0200
committerGitHub <noreply@github.com>2018-03-28 16:14:40 +0200
commit7d1b15c95e1341fb308223576e15dc4777544ccb (patch)
tree8c766474a90ef7941c899902a468f2597cdeafc7 /Bugzilla
parent575261c6d9e432ea181beedfc8086c24cc17ccc6 (diff)
downloadbugzilla-7d1b15c95e1341fb308223576e15dc4777544ccb.tar.gz
bugzilla-7d1b15c95e1341fb308223576e15dc4777544ccb.tar.xz
Bug 1449168 - Remove warning --function from jobqueue worker
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/JobQueue/Runner.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/Bugzilla/JobQueue/Runner.pm b/Bugzilla/JobQueue/Runner.pm
index 1c74bc28f..5cf7d82eb 100644
--- a/Bugzilla/JobQueue/Runner.pm
+++ b/Bugzilla/JobQueue/Runner.pm
@@ -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]";
}