NAME
Bioinfo::PBS::Queue - used to submit a batch of task to Torque cluster
VERSION
version 0.1.5
SYNOPSIS
use Bioinfo::PBS;
use Bioinfo::PBS::Queue;
my $para = {
cpu => 2,
name => 'blast',
cmd => 'ls -alh; pwd',
};
my $pbs_obj = Bioinfo::PBS->new($para);
# three tasks are running at the same time
my $queue_obj = Bioinfo::PBS::Queue->new(name => 'blastnr', parallel => 3);
# all tasks will be running at the same time if parallel is not setted
my $queue_obj = Bioinfo::PBS::Queue->new(name => 'blastnr');
$queue_obj->add_tasks($pbs_obj);
$queue_obj->add_tasks($pbs_obj);
$queue_obj->execute;
DESCRIPTION
This module is created to simplify process of task submitting in PBS system, and waiting for the finish of multiple tasks.
ATTRIBUTES
tasks
cpu number that will apply
add_tasks
one or more object of Bioinfo::PBS can be added to queue. if a Bioinfo::PBS::Queque be added, all its tasks are added. if a hashref can be passed, a object of Bioinfo::PBS will be created and added to this queue, for example: {cpu =>2, name =>'blast', cmd=>"ls -alh", priority=>1}
METHODS
execute
run all tasks in the queue by the order
AUTHOR
Yan Xueqing <yanxueqing621@163.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2017 by Yan Xueqing.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.