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
192f4078
Commit
192f4078
authored
Sep 13, 2010
by
Leo Gordon
Browse files
allow a non-process to enjoy dataflow mechanism - just because it has become possible
parent
d5c63e99
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
modules/Bio/EnsEMBL/Hive/Worker.pm
modules/Bio/EnsEMBL/Hive/Worker.pm
+6
-6
No files found.
modules/Bio/EnsEMBL/Hive/Worker.pm
View file @
192f4078
...
...
@@ -639,29 +639,29 @@ sub run_module_with_job {
my
(
$self
,
$job
)
=
@_
;
$job
->
incomplete
(
1
);
$job
->
autoflow
(
1
);
$self
->
enter_status
('
COMPILATION
');
$job
->
update_status
('
COMPILATION
');
my
$runObj
=
$self
->
analysis
->
process
or
die
"
Unknown compilation error
";
my
$native_hive_process
=
$runObj
->
isa
("
Bio::EnsEMBL::Hive::Process
");
my
$job_stopwatch
=
Bio::EnsEMBL::Hive::Utils::
Stopwatch
->
new
()
->
restart
();
$self
->
queen
->
dbc
->
query_count
(
0
);
#pass the input_id from the job into the Process object
if
(
$native_hive_p
rocess
)
{
if
(
$runObj
->
isa
('
Bio::EnsEMBL::Hive::P
rocess
')
)
{
$runObj
->
input_job
(
$job
);
$runObj
->
queen
(
$self
->
queen
);
$runObj
->
worker
(
$self
);
$runObj
->
debug
(
$self
->
debug
);
$job
->
autoflow
(
1
);
$job
->
param_init
(
$runObj
->
strict_hash_format
(),
$runObj
->
param_defaults
(),
$self
->
db
->
get_MetaContainer
->
get_param_hash
(),
$self
->
analysis
->
parameters
(),
$job
->
input_id
()
);
}
else
{
$runObj
->
input_id
(
$job
->
input_id
);
$runObj
->
db
(
$self
->
db
);
$job
->
param_init
(
0
,
$self
->
db
->
get_MetaContainer
->
get_param_hash
(),
$self
->
analysis
->
parameters
(),
$job
->
input_id
()
);
# Well, why not?
}
$self
->
enter_status
('
GET_INPUT
');
...
...
@@ -689,9 +689,9 @@ sub run_module_with_job {
$runObj
->
write_output
;
$self
->
{'
writing_stopwatch
'}
->
pause
();
if
(
$native_hive_process
and
$job
->
autoflow
)
{
if
(
$job
->
autoflow
)
{
printf
("
AUTOFLOW input->output
\n
")
if
(
$self
->
debug
);
$
runObj
->
dataflow_output_id
();
$
job
->
dataflow_output_id
();
}
}
else
{
print
("
\n\n
!!!! NOT write_output
\n\n\n
")
if
(
$self
->
debug
);
...
...
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