Skip to content

Commit 68b7110

Browse files
Merge pull request #24 from open-runtimes/fix-deletion-race-condition
2 parents 37786fe + d51c295 commit 68b7110

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/http.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -634,6 +634,11 @@ function (string $runtimeId, string $payload, array $variables, int $timeout, st
634634
}
635635
}
636636

637+
// Update swoole table
638+
$runtime = $activeRuntimes->get($activeRuntimeId) ?? [];
639+
$runtime['updated'] = \time();
640+
$activeRuntimes->set($activeRuntimeId, $runtime);
641+
637642
// Ensure runtime started
638643
for ($i = 0; $i < 5; $i++) {
639644
if ($activeRuntimes->get($activeRuntimeId)['status'] !== 'pending') {

0 commit comments

Comments
 (0)