Questions tagged [cron]
Denotes a question related to the cron system
859
questions
100
votes
16answers
179k views
New order email confirmation not being sent
I have upgraded my website to 1.9.1 and now my customers are not receiving order confirmation email.
I tried sending through the admin panel but nothing happens, also no update email is being ...
35
votes
2answers
25k views
Magento 1.9.1 Email Queue not working/buggy - how to troubleshoot and what is considered the best patch?
First of all yes, this is yet another question/topic about the 1.9.1 email queue. But it is not about about any cron problems (like this or this) or about the new queue feature not being used (like ...
27
votes
1answer
20k views
Which cron script is best to run? cron.php or cron.sh
Magento provides two cron scripts in its root directory, cron.php and cron.sh.
Which one is the better to run and why?
19
votes
3answers
13k views
Pre-Warming the Magento Enterprise Full Page Cache
The performance benefits of the full page cache in Magento Enterprise are fairly well known. What may not be quite so well known is that for the full benefit of this to be realized, it must be fully ...
16
votes
3answers
12k views
Difference between Shell and PHP Cron files in 1.9
The title pretty much sums it up. Is there a difference between the shell file and php file for the Magento cron?
If there is a difference is there a reason to run one instead of the other?
15
votes
3answers
24k views
Magento not sending order confirmation emails to admin
I'm at loss on what to do.
This morning I configured cron and according to Aoe_Scheduler the emails in the queue are sent each 5 minutes. I don't, however, receive new order confirmations on my email ...
15
votes
3answers
10k views
Catalog rules daily update doesn't work
I face with problem that Magento's Catalog rules daily update doesn't work. This means that there are no products price changes when catalog rule's expire date comes, so I have to press rule apply ...
15
votes
2answers
1k views
PDO exception while executing cron: newsletter queue send fails (Unknown column 'main_table.data' in 'field list')
the cron job fails when processing the newsletter queue. I debugged the PDO calls and it seems like Magento is mixing up fields here. I have no clue where Magento (or Zend PDO) get the fields to ...
13
votes
4answers
11k views
Magento 2 run a specific Cron without cron:run CLI command?
To make a long story short xdebug will not reliably stop on the breakpoints in my cron files when using the typical:
php bin/magento cron:run
Xdebug is all setup properly and sometimes it will work ...
12
votes
6answers
17k views
Magento 1.9.1 cron_schedule is not picked for ever
I spent almost 3 days and cant able to understand and make the Magento Cron to process the scheduled tasks. I am running Magento 1.9.1.0 and recently noticed that order emails are now queued instead ...
11
votes
4answers
4k views
Why does Magento 2.1.2 cron:run gives Undefined index: jobs?
When running:
/usr/bin/php /var/www/magento2/bin/magento cron:run | grep -v "Ran jobs by schedule" >> /var/www/magento2/var/log/magento.cron.log
I get:
[Exception] ...
11
votes
2answers
6k views
Magento: send New Order Email only with cronjobs
How can I send The new order Emails using:
$order->sendNewOrderEmail();
only from a cronjob used in My custom Module.
Thanks for help.
11
votes
1answer
1k views
How safe it is to run the magento cron.php cron job every minute?
About Magento 1.9
I want to run Magento's cron.php every minute because, I want sales email to be sent the soonest possible on client order. So besides the email function can someone let me know what ...
11
votes
1answer
853 views
Reasons to setup cronjob for setup:cron:run and update/cron.php on a deployed production system?
In Magento 2 there are three commands that should be set up as cronjob
* * * * * <path to php binary> <magento install dir>/bin/magento cron:run | grep -v "Ran jobs by schedule" >> &...
10
votes
3answers
18k views
Magento cron.php Does Nothing After it Runs
My Magento cron works normally about a few months ago. But recently, it suddenly stop generating schedule. The cron command itself running fine in my hosting server. It is Magento ver 1.8.0.0.
These ...
10
votes
3answers
16k views
Magento 2 : Execute Cron
How can I execute Cron from command line manually.
In Magento 1.x we can run cron like :
www.testsite.com/cron.php
but in magento 2 how can I do this ?
Please also help me for how can I execute ...
10
votes
5answers
7k views
What timezone are Magento cron jobs being run in?
My system's timezone is US/Eastern, my default store is US/Central and the database is UTC. At what time will the following doStuff method be called?
<mymodule_do_stuff>
<schedule><...
9
votes
2answers
5k views
Magento 2 - Error on running update/cron.php
I'm getting an error on running update/cron.php
I setup the cronjob according to the documentation. But it gives the following error:
PHP Warning: require_once(update/vendor/autoload.php): failed ...
9
votes
4answers
3k views
Magento 2 update.log increases significant size every minute
UPDATE:
I ended up using logrotate utility to handle the ever-growing log files. I've also set up few cron jobs that will check for unneeded temporary files from time to time.
I have the standard ...
9
votes
1answer
2k views
Magento Advanced/System/Cron* settings
Synopsis
So I wanted to confirm my understanding of the cron configurations with Magento; under the admin console System > Configuration > Advanced > System > Cron:
Generate Schedules ...
9
votes
1answer
557 views
Does Magento 2 run it's cron jobs in parallel?
A simple question: I've got a cron that executes every 5 minutes, and the job itself also runs for some 5 minutes.
Do all the other cron tasks wait for this job to finish? Or does Magento 2 run crons ...
8
votes
1answer
2k views
Setting up cron to run every 30 minutes
I want to create a cron that runs every 30 minutes.
I am using another cron as an example - I have created the cron in a config.xml file, not using the admin interface.
The example I am using is the ...
8
votes
6answers
8k views
cronjob: How to reindex only what is needed
We got a server which has 5 separately shops on it. Some are practically inactive. Some are daily active.
To decrease the server load. We changed the index from automatic to manual. Then we set a ...
8
votes
1answer
2k views
Should 2 of the standard cron always be running?
My question comes down to, should multiple magento cron:run -vvv processes always be running and hitting MySql constantly.
I am setting up Magento 2.2.1 thru Google Cloud and I have the 3 standard ...
7
votes
5answers
10k views
Magento2: run cron job every minute
System cron starts Magento 2 cron every minute:
$ crontab -l
*/1 * * * * /usr/bin/php /home/user/prj/mage2/bin/magento cron:run >> /home/user/prj/mage2/var/log/cron.log
I see new line Ran jobs ...
7
votes
7answers
26k views
How to make sure your Magento 2.0 cron job is running
How do I make sure my Magento cron job is running? I setup cron per the Magento 2 installation instructions for the log files.
See screen shot (click to enlarge):
I am running Magento CE 2.0.2
...
7
votes
5answers
12k views
Magento 2 cron not working
*/1 * * * * www-data php /var/www/magento-2/bin/magento cron:run
*/1 * * * * www-data php /var/www/magento-2/update/cron.php
*/1 * * * * www-data php /var/www/magento-2/bin/magento setup:cron:run
...
7
votes
1answer
3k views
How are dynamic cronjobs inserted into cron_schedule
The timing for a number of Magento's core cron tasks such as sitemap, stock alert notifications and log cleaning can be adjusted via the admin's System Config. This means they are not defined inside ...
7
votes
2answers
4k views
Magento 2: How to set cron for reindex in SSH in magento 2?
I want to know how to set cron for reindexing a particular indexer method in Magento 2. I have used below code to reindex all but not working:
* * * * * php –f /shell/indexer.php reindexall
Can ...
7
votes
4answers
8k views
List cron jobs in Magento 2
I am looking for a way to list all magento 2 cron jobs. Is it available somewhere easy to review?
7
votes
6answers
6k views
Cron.php undefined index 'SCRIPT_FILENAME'
Synopsis
I'm getting this error:
Cron.php undefined index 'SCRIPT_FILENAME'
Why is the following code in the magento core cron.php?
// Only for urls
// Don't remove this
$_SERVER['SCRIPT_NAME'] =...
7
votes
2answers
3k views
How to set cronjob dynamic schedule from database in Magento 2
I am working on a custom module for Magento 2. I did setup crontab there and it is working good with static schedule.
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
7
votes
3answers
3k views
Magento 1.9.1 sending multiple emails
I have my store setup and ready to work with it. When I'm going to make a test order, I noticed that Magento is sending the confirmation email multiple times, doesn´t stop sending. I'm receiving the ...
7
votes
1answer
916 views
Magento 2 Reports Refresh Statistics Cron
Is it possible to refresh report statistics via cron job. Does Magento2 support refresh via cron feature out of the box?
7
votes
1answer
4k views
AOE Scheduler Instructions (unsure of how to run commands)
I'm on 1.9.2.1 and am new to development. My new order emails are not sending so I installed AOE Scheduler and I get the error:
No heartbeat task found. Check if cron is configured correctly. (See ...
7
votes
1answer
3k views
Magento 2 send e-mail (order) notification to customer without cron
I need to limit some of the magento 2 cron job, one of them is send an email to customer:
can i make this cron job not running on cron?
6
votes
1answer
10k views
Cron jobs stuck in running status
Somehow our automated email reminder rules have stopped working meaning that our Abandoned cart emails have stopped sending. If I look in the cron_schedule table I see a few rows that have a status ...
6
votes
3answers
11k views
sales email cron job not sending (1.9)
I have verified that the cron script is running, but order confirmation emails are not being sent out. When I open cron.php I see nothing in there regarding emails. Do I need to add anything to the ...
6
votes
2answers
717 views
Cronjob - shorter intervals than 5 minutes
Is it feasible to run the Magento cron (on Linux) at a shorter interval than 5 minutes? It seems that every resource I find seems to recommend 5 minutes.
The reason is that I have an auto invoice ...
6
votes
3answers
2k views
Magento 2 Bulk Actions not Starting
After trying to update attributes for 4 products in Magento 2.3.2 the Bulk Actions log shows that the update tasks have not started.
My Magento cron jobs appear to be running ok, why are bulk action ...
6
votes
1answer
4k views
Why aren't product stock alerts being sent?
When an item comes back in stock, I expect people who are listed to receive notifications to be sent an email when the product comes back in stock, but they are not.
All other emails are being sent ...
6
votes
1answer
906 views
Magento2 :: Why cron:run, update/cron.php, setup:cron:run needed
In Magento Devdocs for setting up cron it is recommended to schedule 3 seperate scripts
* * * * * <path to php binary> <magento install dir>/bin/magento cron:run | grep -v "Ran jobs by ...
5
votes
10answers
21k views
Magento 2: New added products not showing
I need some help I have added new products in the Backend and they are showing in the DB but not showing on the front page.
Also, previously out of stock products are not showing as well after ...
5
votes
3answers
4k views
Log Cleaning does not work
I turned on Log Cleaning (under System -> Configuration -> System -> Log Cleaning). This is my configuration:
I set a Scheduled Task (I'm on Windows) to send a request to cron.php every 5 minutes. ...
5
votes
2answers
4k views
Is there an AOE Scheduler for magento 2?
Or some equivalent?
It would be a great module to have for m2, no?
5
votes
4answers
7k views
Set cron for Reindex (specific) indexes
I want to set an cronjob for reindexing some indexes, but preferably not all.
First of all, how would I set one up for all?
And if possible how to I exclude a specific index?
5
votes
4answers
12k views
catalog price rules disappear after mid night
we have a problem with catalog price rules in 1.9.0
we have some 1000 products in a site.
we applied catalog price rules to give discount for 500 products.
i did't gave any date limit for catalog ...
5
votes
1answer
22k views
Cron Task Scheduler Issue - Last heartbeat is older than x minutes
We are using AOE cron scheduler from Fabrizio Branca. My scheduled tasks are loading, cron working fine etc. When I look at the timeline or list view, the jobs are loading successfully. But all of a ...
5
votes
2answers
896 views
Cancel the orders which are older than 3 days
I'm trying to execute cron job after customer click place order button and redirect to success page. So the purpose of my job, if admin did not respond the order in 3 days, the order status will ...
5
votes
4answers
4k views
How to setup Magento 2.2 cron job?
I have just made a fresh installation of Magento 2.2.1 to eventually be able to migrate from my present 1.7.
But I already encountered some difficulties.
The message "One or more indexes are invalid....