- Made exipred sessions workflow activity more fault tollerant.

- Made rss fetching more fault tollerant.
This commit is contained in:
JT Smith 2007-02-01 00:26:15 +00:00
parent e1bd43b02e
commit caf859129d
3 changed files with 9 additions and 3 deletions

View file

@ -14,6 +14,8 @@
- fix: Added better error trapping for WikiMaster
- fix: Wiki causes site to fail
- fix: Wiki Error on plainblack.com
- Made exipred sessions workflow activity more fault tollerant.
- Made rss fetching more fault tollerant.
- fix: lack of testing for valid object creation
- fix: No mention of intermediate upgrade step in gotcha's
- fix: A newly released version of Html::Template fixes a bug with global

View file

@ -69,14 +69,18 @@ See WebGUI::Workflow::Activity::execute() for details.
sub execute {
my $self = shift;
my $sth = $self->session->db->read("select sessionId from userSession where expires<?",[time()]);
my $time = time();
while (my ($sessionId) = $sth->array) {
my $session = WebGUI::Session->open($self->session->config->getWebguiRoot, $self->session->config->getFilename, undef, undef, $sessionId, 1);
if (defined $session) {
$session->var->end;
$session->close;
}
if ((time() - $time) > 55) {
$sth->finish;
return $self->WAITING;
}
}
$sth->finish;
return $self->COMPLETE;
}

View file

@ -91,8 +91,8 @@ sub execute {
# May need to fix this in the future.
my $returnValue = WebGUI::Asset::Wobject::SyndicatedContent::_get_rss_data($self->session, $url);
unless (defined $returnValue) {
$self->session->errorHandler->error("GetSyndicatedContent Workflow Activity: _get_rss_data returned undef while trying to process syndicated content url $url");
return $self->ERROR;
$self->session->errorHandler->error("GetSyndicatedContent Workflow Activity: _get_rss_data returned undef while trying to process syndicated content url $url, which usually indicates an improper URL, or a malformed document");
next;
}
}