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
331fc631
Commit
331fc631
authored
Mar 08, 2005
by
Jessica Severin
Browse files
removed debugging messages. Changed synch wait to 3 minutes when WORKING
parent
36b47088
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
modules/Bio/EnsEMBL/Hive/Queen.pm
modules/Bio/EnsEMBL/Hive/Queen.pm
+3
-3
No files found.
modules/Bio/EnsEMBL/Hive/Queen.pm
View file @
331fc631
...
...
@@ -382,15 +382,15 @@ sub safe_synchronize_AnalysisStats {
return
$stats
if
(
$stats
->
status
eq
'
DONE
');
return
$stats
if
(
$stats
->
sync_lock
);
return
$stats
if
((
$stats
->
status
eq
'
WORKING
')
and
(
$stats
->
seconds_since_last_update
<
5
*
60
));
(
$stats
->
seconds_since_last_update
<
3
*
60
));
# OK try to claim the sync_lock
my
$sql
=
"
UPDATE analysis_stats SET status='SYNCHING', sync_lock=1
"
.
"
WHERE sync_lock=0 and analysis_id=
"
.
$stats
->
analysis_id
;
print
("
$sql
\n
");
#
print("$sql\n");
my
$row_count
=
$self
->
dbc
->
do
(
$sql
);
return
$stats
unless
(
$row_count
==
1
);
printf
("
got sync_lock on analysis_stats(%d)
\n
",
$stats
->
analysis_id
);
#
printf("got sync_lock on analysis_stats(%d)\n", $stats->analysis_id);
#OK have the lock, go and do the sync
$self
->
synchronize_AnalysisStats
(
$stats
);
...
...
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