Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
0a3062af
Commit
0a3062af
authored
Oct 27, 2014
by
Matt Tyson
Committed by
Byron Jones
Oct 27, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 1067753: Allow the job queue to specify one or more types of jobs to run
r=mtyson,a=sgreen
parent
5a1a4b92
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
8 deletions
+12
-8
Runner.pm
Bugzilla/JobQueue/Runner.pm
+4
-1
jobqueue.pl
jobqueue.pl
+8
-7
No files found.
Bugzilla/JobQueue/Runner.pm
View file @
0a3062af
...
...
@@ -80,6 +80,7 @@ sub gd_more_opt {
return
(
'pidfile=s'
=>
\
$self
->
{
gd_args
}{
pidfile
},
'n=s'
=>
\
$self
->
{
gd_args
}{
progname
},
'j=s@'
=>
\
$self
->
{
gd_args
}{
job_name
},
);
}
...
...
@@ -210,10 +211,12 @@ sub gd_run {
sub
_do_work
{
my
(
$self
,
$fn
)
=
@_
;
my
@job_name
=
@
{
$self
->
{
gd_args
}{
job_name
}
//
[]
};
my
$jq
=
Bugzilla
->
job_queue
();
$jq
->
set_verbose
(
$self
->
{
debug
});
$jq
->
set_pidfile
(
$self
->
{
gd_pidfile
});
foreach
my
$module
(
values
%
{
Bugzilla::
JobQueue
->
job_map
()
})
{
while
(
my
(
$key
,
$module
)
=
each
%
{
Bugzilla::
JobQueue
->
job_map
()
})
{
next
if
@job_name
and
!
grep
{
$_
eq
$key
}
@job_name
;
eval
"use $module"
;
$jq
->
can_do
(
$module
);
}
...
...
jobqueue.pl
View file @
0a3062af
...
...
@@ -33,13 +33,14 @@ jobqueue.pl - Runs jobs in the background for Bugzilla.
./
jobqueue
.
pl
[
OPTIONS
]
COMMAND
OPTIONS:
-
f
Run
in
the
foreground
(
don
't detach)
-d Output a lot of debugging information
-p file Specify the file where jobqueue.pl should store its current
process id. Defaults to F<data/jobqueue.pl.pid>.
-n name What should this process call itself in the system log?
Defaults to the full path you used to invoke the script.
-
f
Run
in
the
foreground
(
don
't detach)
-d Output a lot of debugging information
-p file Specify the file where jobqueue.pl should store its current
process id. Defaults to F<data/jobqueue.pl.pid>.
-n name What should this process call itself in the system log?
Defaults to the full path you used to invoke the script.
-j job-name The name of jobs to process. Can be specified multiple times.
If not specified, all job types will be processed.
COMMANDS:
start Starts a new jobqueue daemon if there isn'
t
one
running
already
stop
Stops
a
running
jobqueue
daemon
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment