From 42897e462847198174dd48ea2b148bac394f60f9 Mon Sep 17 00:00:00 2001 From: Erick Hitter Date: Tue, 13 May 2025 08:32:25 -0700 Subject: [PATCH] Force script to exit upon successful completion For as-yet-unknown reasons, we've experienced a few runs that "hang" after the `Process complete.` line is output. --- classes/class-init.php | 1 + 1 file changed, 1 insertion(+) diff --git a/classes/class-init.php b/classes/class-init.php index 72d8aee..6d1a383 100644 --- a/classes/class-init.php +++ b/classes/class-init.php @@ -94,6 +94,7 @@ public function start( array $args, array $assoc_args ): void { } WP_CLI::line( 'Process complete.' ); + exit( 0 ); } catch ( Throwable $throwable ) { $this->_handle_error( $throwable ); }