Support » Plugin: Newsletter - Send awesome emails from WordPress » Warning with externally triggered cron

  • Resolved terry789

    (@terry789)


    Hello,

    I created a cron trigger for multisite with a script.

    Checked if this worked, newsletter has also been detected see example

    <pre>Starting at Fri, 04 Mar 2022 14:03:55 +0100
    1 of 2) Processing: [https://www.mysite.com/]
    cron: [Executed the cron event 'newsletter' in 0.016s.
    Executed the cron event 'wp_privacy_delete_old_export_files' in 0.001s.
    Success: Executed a total of 2 cron events.]
    
    <br/>2 of 2) Processing: [https://www.mysite.com/nl/]
    cron: [Executed the cron event 'newsletter' in 0.009s.
    Executed the cron event 'wp_privacy_delete_old_export_files' in 0.002s.
    Executed the cron event 'wpo_smush_clear_backup_images' in 0.001s.
    Success: Executed a total of 3 cron events.]
    
    <br/>Finished at Fri, 04 Mar 2022 14:03:58 +0100
    </pre>

    Then set up a cron job for every 5 minutes

    This is being carried out, see email confirmation:

    <pre>Starting at Fri, 04 Mar 2022 12:50:02 +0100
    Finished at Fri, 04 Mar 2022 12:50:02 +0100
    </pre>

    In WP Config I disabled cron with: define( ‘DISABLE_WP_CRON’, true)

    However, I get a message: The engine schedule is late. You probably need and external scheduler trigger.

    I did the – WordPress scheduler auto trigger – Test

    Two results:
    Test ok and
    The engine schedule has been skipped. The scheduler is overloaded or a job has fatal error and blocks the scheduler.

    With CTRL F5 on that page the button turns green and says – Everything seems fine!

    I have made some test subscribers for newsletter that I have planned for a certain time
    No mails are sending….

    I have done several tests before this and sending was ok.

    Oh, the script using see here

    Any idea?

    Thanks

    • This topic was modified 9 months, 1 week ago by terry789.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Stefano Lissa

    (@satollo)

    This error “The engine schedule has been skipped” is a special case (but can be transitory) when the next job execution is scheduled and the wp-cron.php has been triggered without executing the job.

    About the sending, not proceeding, are the newsletters in status “sending” or something else? You can possibly rise le log level to debug in Newsletter main setting so we can check what is happening.

    Stefano.

    Thread Starter terry789

    (@terry789)

    Hello Stefano,

    I have set it to debug mode, can I send those files to an email address?

    Under Site Health Status I see:

    The scheduled event, newsletter, failed to run. Your site still works, but this may indicate that scheduling posts or automated updates may not work as intended.

    Thread Starter terry789

    (@terry789)

    Hello Stefano,

    Update:

    first of all, it’s not your plugin 🙂

    I have found that the cron job with */5 * * * * /usr/local/bin/php /path/to/site/my_cron.php not working properly

    In my confirmation mail (from Cron Daemon) it says “done” but the script was not executed….

    When I call the script via my browser it works, and… executed.

    So I have to come up with something else to make this work.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Warning with externally triggered cron’ is closed to new replies.