We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c83dacf commit 946be51Copy full SHA for 946be51
src/Commands/IndexCommand.php
@@ -59,6 +59,9 @@ public function handle(): int
59
ActivateIndex::dispatch($indexConfig)
60
->onConnection(config('elastica-bridge.connection'));
61
})
62
+ ->catch(function () use ($indexConfig): void {
63
+ $indexConfig->indexingLock()->forceRelease();
64
+ })
65
->finally(function () use ($indexConfig): void {
66
$indexConfig->indexingLock()->forceRelease();
67
0 commit comments