ensembl-hive
2.1
|
This RunnableDB module is used to test failure of jobs in the hive system. It is intended for development/training purposes only. Available parameters: param('value'): is essentially your job's number. If you are intending to create 100 jobs, let the param('value') take consecutive values from 1 to 100. param('divisor'): defines the failure rate for this particular analysis. If the modulo (value % divisor) is 0, the job will fail. For example, if param('divisor')==5, jobs with 5, 10, 15, 20, 25,... param('value') will fail. param('state'): defines the state in which the jobs of this analysis may be failing. param('lethal_after'): makes jobs' failures lethal when 'value' is greater than this parameter param('time_FETCH_INPUT'): time in seconds that the job will spend sleeping in FETCH_INPUT state. param('time_RUN'): time in seconds that the job will spend sleeping in RUN state. param('time_WRITE_OUTPUT'): time in seconds that the job will spend sleeping in WRITE_OUTPUT state.
public Bio::EnsEMBL::Hive::RunnableDB::FailureTest::dangerous_math | ( | ) |
Description: an internal subroutine that will first sleep for some predefined time, and then either return or crash if $value is an integral multiple of $divisor.
public Bio::EnsEMBL::Hive::RunnableDB::FailureTest::fetch_input | ( | ) |
Description : Implements fetch_input() interface method of Bio::EnsEMBL::Hive::Process that is used to read in parameters and load data. Here it only calls dangerous_math() subroutine.
public Bio::EnsEMBL::Hive::RunnableDB::FailureTest::grab_memory | ( | ) |
Undocumented method
public Bio::EnsEMBL::Hive::RunnableDB::FailureTest::param_defaults | ( | ) |
Description : Implements param_defaults() interface method of Bio::EnsEMBL::Hive::Process that defines module defaults for parameters.
public Bio::EnsEMBL::Hive::RunnableDB::FailureTest::post_cleanup | ( | ) |
Title : post_cleanup Function: sublcass can implement functions related to cleaning up after running one job (destroying non-trivial data structures in memory). Here we just define it to see when the job gets into this state.
public Bio::EnsEMBL::Hive::RunnableDB::FailureTest::pre_cleanup | ( | ) |
Title : pre_cleanup Function: sublcass can implement functions related to cleaning up the database/filesystem after the previous unsuccessful run. Here we just define it to see when the job gets into this state.
public Bio::EnsEMBL::Hive::RunnableDB::FailureTest::run | ( | ) |
Description : Implements run() interface method of Bio::EnsEMBL::Hive::Process that is used to perform the main bulk of the job (minus input and output). Here it only calls dangerous_math() subroutine.
public Bio::EnsEMBL::Hive::RunnableDB::FailureTest::write_output | ( | ) |
Description : Implements write_output() interface method of Bio::EnsEMBL::Hive::Process that is used to deal with job's output after the execution. Here it only calls dangerous_math() subroutine.