-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automated sendouts via cron job not working #14
Comments
Hi Andrew. Your interpretation of the docs is correct and adding |
Hi Ben, thanks for your assistance. After further testing, I realize that when it seemed to be working was also when I had With |
Tested this scenario locally and I still can't replicate your issue. I wonder if your server setup is preventing the queue from being manually run, as Craft does some checks before allowing it to happen. Does setting |
Running Sure enough, the I'm not sure how other servers/systems might interpret the URL, but it might be good to note this difference in the docs. Also, one thing I noticed was that in test mode, logs were not being written to Thanks again for your assistance and for the great plugin. |
Ah excellent, thanks for the update and I'll add to the plugin in the next release. |
When trying to automate email sendouts via the Automated Sendout Type and cron job, the cron job does not successfully trigger the jobs queue to run. The cron job command is as written in the docs/settings:
wget http://mywebsite.com/actions/campaign/sendouts/queue-pending-sendouts?key=HcNHpvyqclSQyVRb&run=1 >/dev/null 2>&1
. Executed on Linode/Forge at an interval of every 1 minute.If I hit that URL from a browser that is logged into Craft, the jobs queue will run as expected and any queued emails will be sent. However, if that URL is hit from a browser / server that is not logged into Craft (where the cron job is executed for example), the jobs queue will not run.
I interpreted the docs to mean that
runQueueAutomatically
should be set tofalse
in order for the jobs queue to only run when triggered by the cron job. However, I triedrunQueueAutomatically
both true (default) and false, without luck.I am currently only trying to send 1 email every 10 minutes, so I suspected I'm not hitting any batch thresholds. I am also currently in
test mode
, but I experienced the same issue when sending live emails.Any help is greatly appreciated!
Versions:
Craft 3.0.21
Campaign 1.1.9
Campaign Pro 1.0.0
Server- Ubuntu 16.04.3 / Linux 4.15.13
The text was updated successfully, but these errors were encountered: