- Made a change to version tag commits to deal with unusually long commit

times.
This commit is contained in:
JT Smith 2006-11-09 20:57:53 +00:00
parent 204046d283
commit 282e1caacd
3 changed files with 46 additions and 11 deletions

View file

@ -70,8 +70,13 @@ See WebGUI::Workflow::Activity::execute() for details.
sub execute {
my $self = shift;
my $versionTag = shift;
$versionTag->commit;
return $self->COMPLETE;
my $completion = $versionTag->commit({timeout=>55});
if ($completion == 1) {
return $self->COMPLETE;
} elsif ($completion == 2) {
return $self->WAITING;
}
return $self->ERROR;
}