Skip to content

Commit

Permalink
Merge pull request #139 from moleculerjs/bump-psql
Browse files Browse the repository at this point in the history
Bump psql
  • Loading branch information
icebob authored Feb 5, 2025
2 parents 46e3a2d + a8987a7 commit 44cd847
Show file tree
Hide file tree
Showing 8 changed files with 2,383 additions and 5,549 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
node-version: [16.x, 18.x, 20.x, 22.x]
fail-fast: false

steps:
Expand Down
7 changes: 7 additions & 0 deletions packages/moleculer-psql-queue/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
<a name="0.3.0"></a>

# [0.3.0]

- Bump deps
- Improve SIGINT and SIGTERM handling during shutdown

<a name="0.2.0"></a>

# [0.2.0]
Expand Down
28 changes: 14 additions & 14 deletions packages/moleculer-psql-queue/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
version: '3.8'
version: "3.8"

services:
pqsl:
image: postgres:14.1-alpine
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- '5444:5432'
volumes:
- db:/var/lib/postgresql/data # To persist data
- ./database:/docker-entrypoint-initdb.d # to run sql scripts on startup
restart: unless-stopped
pqsl:
image: postgres:17.2-alpine
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- "5444:5432"
volumes:
- db:/var/lib/postgresql/data # To persist data
- ./database:/docker-entrypoint-initdb.d # to run sql scripts on startup
restart: unless-stopped

volumes:
db:
driver: local
db:
driver: local
10 changes: 9 additions & 1 deletion packages/moleculer-psql-queue/examples/simple/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,4 +148,12 @@ broker.createService({
},
});

broker.start();
broker
.start()
.then(() => {
broker.repl();
})
.catch((error) => {
broker.logger.error(error);
process.exit(1);
});
2 changes: 1 addition & 1 deletion packages/moleculer-psql-queue/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* moleculer-psql-queue
* Copyright (c) 2022 MoleculerJS (https://github.com/moleculerjs/moleculer-addons)
* Copyright (c) 2025 MoleculerJS (https://github.com/moleculerjs/moleculer-addons)
* MIT Licensed
*/

Expand Down
Loading

0 comments on commit 44cd847

Please sign in to comment.