timgit / pg-boss

Queueing jobs in Postgres from Node.js like a boss
MIT License
2.15k stars 160 forks source link

sending jobs to the queue not working after upgrade to 10. #484

Closed DanTheAngell closed 2 months ago

DanTheAngell commented 2 months ago

I'm quite new to pg-boss and only recently downloaded version 9. Yesterday I upgraded to 10.6. I wiped out the pgboss schema and let it create the new schema. I noticed that the job table does not have a primary key which is suspicious. Now, if I do this:

const jobId = await boss.send(queue, {
    x: "foo"
});

It returns NULL and nothing gets added to the job table.

DanTheAngell commented 2 months ago

My bad, just figured out that the queue wasn't being created in my code first.