- Made changes to spectre to handle finished workflows better.
This commit is contained in:
parent
06e1acf350
commit
1440fec057
3 changed files with 7 additions and 0 deletions
|
|
@ -20,6 +20,7 @@
|
|||
- fix: Security bug in session env
|
||||
- fix: Ldap Registration of new users (Thanks to guiuser)
|
||||
- fix: Missing/Incorrect POD
|
||||
- Made changes to spectre to handle finished workflows better.
|
||||
|
||||
|
||||
7.0.0
|
||||
|
|
|
|||
|
|
@ -108,6 +108,10 @@ sub checkInstances {
|
|||
my ($kernel, $self) = @_[KERNEL, OBJECT];
|
||||
$self->debug("Checking to see if we can run anymore instances right now.");
|
||||
if ($self->countRunningInstances < $self->config->get("maxWorkers")) {
|
||||
$self->debug("Total workflows waiting to run: ".scalar(keys %{$self->{_instances}}));
|
||||
$self->debug("Priority 1 count: ".scalar(@{$self->{_priority1}}));
|
||||
$self->debug("Priority 2 count: ".scalar(@{$self->{_priority2}}));
|
||||
$self->debug("Priority 3 count: ".scalar(@{$self->{_priority3}}));
|
||||
my $instance = $self->getNextInstance;
|
||||
if (defined $instance) {
|
||||
# mark it running so that it doesn't run twice at once
|
||||
|
|
|
|||
|
|
@ -380,6 +380,8 @@ sub www_runWorkflow {
|
|||
my $instance = WebGUI::Workflow::Instance->new($session, $instanceId);
|
||||
if (defined $instance) {
|
||||
return $instance->run;
|
||||
} else {
|
||||
return "done";
|
||||
}
|
||||
return "complete";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue