Export a method from Workflow::Activity for timeouts and use it in all current Workflows
This commit is contained in:
parent
85ecaa9a09
commit
726bd5ee05
12 changed files with 36 additions and 12 deletions
|
|
@ -354,8 +354,9 @@ sub execute {
|
|||
}
|
||||
}
|
||||
}
|
||||
my $ttl = $self->getTTL;
|
||||
while (@$eventList) {
|
||||
if ($startTime + 55 < time()) {
|
||||
if ($startTime + $ttl < time()) {
|
||||
$instance->setScratch('events', encode_json($eventList));
|
||||
$instance->setScratch('feeds', encode_json($feedList));
|
||||
return $self->WAITING;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue