Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ensembl-gh-mirror
ensembl-hive
Commits
fc3220b9
Commit
fc3220b9
authored
Jun 08, 2004
by
Jessica Severin
Browse files
added check to make sure there is at least 1 worker if there are jobs
parent
3666825d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
modules/Bio/EnsEMBL/Hive/Queen.pm
modules/Bio/EnsEMBL/Hive/Queen.pm
+1
-0
No files found.
modules/Bio/EnsEMBL/Hive/Queen.pm
View file @
fc3220b9
...
...
@@ -203,6 +203,7 @@ sub update_analysis_stats {
if
(
$status
eq
'
READY
')
{
$analysisStats
->
unclaimed_job_count
(
$count
);
my
$numWorkers
=
$count
/
$analysisStats
->
batch_size
;
$numWorkers
=
1
if
(
$numWorkers
<
1
);
if
(
$analysisStats
->
hive_capacity
>
0
and
$numWorkers
>
$analysisStats
->
hive_capacity
)
{
$numWorkers
=
$analysisStats
->
hive_capacity
;
}
...
...
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