Home Forums Support Cronjob for recurring invoices and reminder emails

This topic contains 3 replies, has 2 voices, and was last updated by  Hillel Coren 3 years, 5 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2199

    timo002
    Participant

    Hello,

    I’m running the self hosted version and I’m checking the cron jobs for recurring incoices and reminders. I don’t understand Why I need to add these two cronjobs. Laravel has it’s own cronjob feature, which is used as I can see in the app\console\Kernel.php file.

    Why do I need to add these two crontabs:

    
    0 8 * * * /usr/local/bin/php /path/to/ninja/artisan ninja:send-invoices
    0 8 * * * /usr/local/bin/php /path/to/ninja/artisan ninja:send-reminders
    

    While adding this cron would be enough

    
    * * * * * php /path/to/artisan schedule:run >> /dev/null 2>&1
    

    BTW: Looking at the scheduled commands, you use a parameter --force, but this isn’t used in the command, so it will fail.

    #2202

    Hillel Coren
    Keymaster

    We haven’t yet completed our Laravel scheduler implementation.

    For example, using the crons you’re able to specify the time of day to send the emails however with the scheduler currently they’ll be sent at midnight.

    #2221

    timo002
    Participant

    OK, This would be a future feature?
    I can use the two single cronjobs, no problem at all. But I was just wondering.

    #2224

    Hillel Coren
    Keymaster

    Agreed, hopefully in an upcoming release…

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

Posted in: