use the getTTL method to find the time to pause running a Workflow.
This commit is contained in:
parent
adcc2690f3
commit
8ecf297931
3 changed files with 10 additions and 9 deletions
|
|
@ -111,7 +111,7 @@ sub execute {
|
|||
$msg->addHtml( $self->get('notificationMessage') );
|
||||
$msg->queue;
|
||||
|
||||
if ( time - $time > 60 ) {
|
||||
if ( time - $time > $self->getTTL ) {
|
||||
return $self->WAITING(1);
|
||||
}
|
||||
}
|
||||
|
|
@ -140,7 +140,7 @@ sub execute {
|
|||
|
||||
$asset->deleteThingRecord( $asset->get('thingId'), $record->getId );
|
||||
|
||||
if ( time - $time > 60 ) {
|
||||
if ( time - $time > $self->getTTL ) {
|
||||
return $self->WAITING(1);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue