timgit / pg-boss

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

boss.schedule is not a function #179

Closed AlbertoInsud closed 4 years ago

AlbertoInsud commented 4 years ago

Hi guys, i start to use this to do some stuff ( like create folders every day, etc. ). But when i try use schedule ( await boss.schedule('notification-abc', 0 3 * * *, null, { tz: 'America/Chicago' }) ), mentioned in your documentation, throw exception 'boss.schedule is not a function'.

Thanks in advance.

brianmcd commented 4 years ago

As a quick check, are you using version 5.x of pg-boss? The scheduling functionality was just released, and it's not available on 4.x.

AlbertoInsud commented 4 years ago

I use 4.3.4 version. I thought not exist a 5.x version. I´ll try get it.

Thanks in advance.

AlbertoInsud commented 4 years ago

Nice!!. Was release yesterday and i didn't see before write this. Thanks for all.