Skip to content

Commit

Permalink
fix: don't write to the log when worker processes reach max run time …
Browse files Browse the repository at this point in the history
…and exit.

build: [release]
  • Loading branch information
lots0logs committed Nov 20, 2024
1 parent d36d69f commit e2ef47d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion src/Worker.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
}
}

Expand Down

0 comments on commit e2ef47d

Please sign in to comment.