Question about Cronjob V4 vs V5

Hello, I was on V4 in the past, I still have my command in place for my crons :
one for “ninja:send-reminders”
and one “for ninja:send-invoices”

When ready the manual for the V5, looks like they are obsolete and only something like * * * * * cd /path-to-your-project && php artisan schedule:run >> /dev/null 2>&1 is needed ?

Am I right ?

Hi,

That’s correct, the schedule command runs all other commands

Thanks hillel, I’m testing it right now, only with the scheduler.
I have one test recuring invoice made, and i’ve put the cron each minute. It didn’t sent the invoice yet, but I’m receiving those message in my emails from the Cron Deamon:
’No scheduled commands are ready to run’
or
'[2022-02-15T18:20:04+00:00] Running scheduled command: Callback’

Does it means it’s working ?

Well, I’ve received the test invoice on the hour, so it’s working.

What I’m missing in my Heath Check is Queue not enabled…

There’s info on the queues here:

https://invoiceninja.github.io/docs/self-host-installation/#cron-configuration-1

Thanks, I’m on a shared hosted service, so I will use something like that, with same paths as my cron command.

*/5 * * * * cd /path/to/root/folder && /usr/bin/php -d register_argc_argv=On artisan queue:work --stop-when-empty

And I need to put the QUEUE_CONNECTION variable to ’database’
right ?

Yes, that’s correct (unless you want to use Redis…)