Clarification on Queue (Supervisor) Service Setup

Does this also mean that the crontab

* * * * * cd /usr/share/nginx/invoiceninja/ && php artisan schedule:run >> /dev/null 2>&1

is no longer needed?

I still have that line in the cron for the web server user. I believe it’s separate and still needed, but @david can confirm.

I don’t have the cron anymore and everything seems to work fine.

Interesting that you don’t need it anymore. I wonder if Supervisor is a drop-in replacement for the cron job in that case.

@david , on the official self-hosted installation documentation, it mentions the following a couple of times:

Invoice Ninja relies heavily on the Laravel Scheduler, for this to operate it requires that a cron job to be configured, edit your crontab and enter the following record.

* * * * * cd /path-to-your-project && php artisan schedule:run >> /dev/null 2>&1

Can you please confirm if this is still required if Supervisor is up and running? Or, if an InvoiceNinja installation has Supervisor configured, can this cron job be removed? If having Supervisor installed means that the cron job isn’t required anymore, the installation documentation should be updated to reflect this.

supervisor keeps your queue running.

schedule runs required tasks using cron.

they are separate and distinct. both are required.

2 Likes

Strange. I only had supervisor for months without noticing any downsides. But I don’t use stuff like e-mail, maybe that is why.