fix: only set status in case the last command block is finished

This commit is contained in:
Andras Bacsai
2023-03-31 18:26:38 +02:00
parent cd31ec8db1
commit 9f4a7384b2
3 changed files with 14 additions and 9 deletions

View File

@@ -20,7 +20,7 @@ class PollActivity extends Component
$this->activity?->refresh();
}
if (data_get($this->activity, 'properties.exitCode') !== null) {
if (data_get($this->activity, 'properties.status') == 'finished' || data_get($this->activity, 'properties.status') == 'failed' ) {
$this->isKeepAliveOn = false;
}
}