From e2ef47d521322a37d02f97f0ad1ad38f4fdcfcb8 Mon Sep 17 00:00:00 2001 From: Dustin Falgout Date: Wed, 20 Nov 2024 13:52:41 -0600 Subject: [PATCH] fix: don't write to the log when worker processes reach max run time and exit. build: [release] --- .github/workflows/release.yml | 2 ++ src/Worker.php | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ba9042b..3578135 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -41,6 +41,8 @@ jobs: version-source: file version-file: ${{ github.workspace }}/../current-version version-file-extraction-pattern: '[0-9.]+' + next-version-increment-major: true + next-version-increment-minor: false - name: Create Release id: create-release diff --git a/src/Worker.php b/src/Worker.php index 492617a..573d717 100644 --- a/src/Worker.php +++ b/src/Worker.php @@ -138,7 +138,11 @@ public function run() { } } catch ( \Throwable $err ) { - et_error( $err->getMessage() ); + $msg = $err->getMessage(); + + if ( 'Timedout waiting for more work.' !== $msg ) { + et_error( $msg ); + } } }