This morning at 9am EST our recurring invoices normally send. Have done just fine for a while.
Today they did not. I saw there was a invoice ninja update available, so i installed it and restarted the server. They only partially sent. Meaning not all of them that normally send were sent. Almost exactly half of them still have a next send date of today (4/25/2023). I have tried running the command manually… php artisan schedule:run >> /dev/null 2>&1 from the www folder i have ninja in. But they still won’t send.
here is my crontab entry: * * * * * cd /var/www/html/xxxxx.xxxxxxxxxx.com/ninja && php artisan schedule:run >> /dev/null 2>&1
the laravel log just has this for today… [2023-04-25 06:20:02] production.INFO: Performing Autobilling 2023-04-25 06:20:02
nothing has changed with the server. I did change email templates for reminders, but only how many days out those send. that shouldn’t have affected the recurring invoices from sending?
1-3, are all true. Criteria matches.
4, is it less than or less than or equal?
5. None of these are archived.
6. Is that a DB field?
I didn’t change the send time. Just the reminder templates on when how many days those are sent from the initial invoice date.
So I have three groups.
-Sent normally, show correct next send date. Nothing to do for these.
-Sent but didn’t update next send date. Should these have their next send date manually adjusted?
-Did not send, next send date is still today.
The last group, is there any indicators in the dB I should look for as a reason they may not have gotten picked up?
Not sure what timezone you’re in, i’m EST. I’ll be up early in the morning (4am EST usually), if you have a chance to send over other suggestions. These are some of my biggest invoices so I really need to get them out. I do appreciate all of the help.
Last night at 10:01pm (EST) the rest of them sent.
Do they only generate and send according to the Email Send time setting? Or will they generate on the day they’re supposed to and then send when the time == the send time in the email settings?
I did double check my timezone on the server, it is set to UTC and the timezone in ninja is set to EST. So not sure why it finally decided to run the ones it missed.
2023-05-25 00:00:00 is what all of them are set to now.
The ones that didn’t send at all have a next client send date of 2023-05-25 00:00:00 but the next_send_date is 2023-05-26 02:00:00, which one is more important? We need them to all send on 5/25 at 9am. Do I need to mass up date the next_send_date to match the invoices that did send? those have a next_Send_date of 2023-05-25 14:00
The system is operating correctly, the next_send_date is what we display in the app, the next_send_date_client is the calculated time to send the recurring invoice based on the UTC time equivalent.
Depending on timezones, the actual UTC time may be the next day hence the discrepency
odd… theyve always sent at the correct time until April 25th. So i should make sure that the next_send_date_client is set to the UTC equivalent of 9am EST for May 25th?
and again, not all of them sent. The ones that didn’t send have a next_send_date of 2023-04-26 2:00:00, which are all the ones that sent late the last time. The ones that sent had a next_send_date of 2023-04-25 2:00:00
Does the system check next_send_date in anyway to help determine when to send these?