Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: migrate to pgboss 10 #15

Merged
merged 5 commits into from
Sep 10, 2024
Merged

feat: migrate to pgboss 10 #15

merged 5 commits into from
Sep 10, 2024

Conversation

samaratungajs
Copy link
Collaborator

@samaratungajs samaratungajs commented Sep 9, 2024

pg-boss v10 compatibility

Fix: #14

  • Migrated to new pg-boss v10
  • Job normalization to handle job arrays
  • Create queue before scheduling jobs
  • Minimal requirements Node.js v20 and PostgreSQL v13

async ensureQueueExists(queueName: string) {
const currentQueue = await this.pgBoss.getQueue(queueName);
if (!currentQueue) {
await this.pgBoss.createQueue(queueName);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isnt this automatically creating queue if not exists? do we need to check it again?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

timgit/pg-boss#467
my bad, came across the issue it's fixed now

@kasvith kasvith merged commit 2d25724 into main Sep 10, 2024
2 checks passed
@kasvith kasvith deleted the fix/samaratungajs/update-pgboss branch September 10, 2024 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Access to PGBoss deadLetter Option
2 participants