The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [cron]

Denotes a question related to the cron system

Filter by
Sorted by
Tagged with
3
votes
3answers
2k views

Custom cron causing one page checkout deadlocks

We have created a Magento cron that is being run through cron.php. This cron updates certain orders to the 'canceled' order status: public function abandonedOrderCleanup() { $statusArray(...
1
vote
2answers
117 views

Set Cron depending on user input in configuration

In custom module's configuration, we allow admin to select a day when a task needs to be executed. How do I specify that value dynamically in cron schedule? for eg: Admin selected 20 in the settings ...
1
vote
1answer
422 views

boast total number of products ordered on homepage

I have a site that primarily sells one type of product in several quantities (50, 100, 200 and 400). How would I go about dynamically showing on the homepage the total amount of these products ordered ...
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. ...
2
votes
2answers
505 views

How do I register a modules' cronjob

Synopsis First of all I wish to express how a third-party extension to list the crobjobs is not what I am looking for, I shall omit my opinion for how Magento handles cronjobs. My problem is when I ...
1
vote
0answers
31 views

Running cronjobs in different sessions [closed]

We are having a problem whereby two cronjobs are using the adminhtml/session_quote to save order information (both jobs are generating orders, one is related to subscriptions and the other importing ...
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 ...
0
votes
1answer
626 views

The cron script fails when executed

When cron on the server kicks off to start the magento cron, an exception is thrown in var/reports with the error: a:4:{i:0;s:31:"Invalid cron expression: always";i:1;s:1245:"#0 /home/magento/...
4
votes
6answers
4k views

Cronjob issues with APC

I used the following command to setup my cronjob: sudo crontab -e -u www-data and the actual cronjob: */5 * * * * /bin/sh /var/www/cron.sh >/dev/null 2>&1 I also have APC running on my ...
2
votes
2answers
3k views

Run a function at every hours in cron

I want run a magento function that would run at every hour , i am written code in config.xml but i did not working.here the code in config.xml <crontab> <jobs> ...
1
vote
2answers
556 views

Create a cronjob

I am trying to create a cronjob that will run my script (which imports an XML files) on a set time. For now I put it to run every 2 min., just for testing purposes. What I've done is just add the ...
0
votes
1answer
2k views

How do I set up cron job in Magento for Google product feed?

I have installed following Magento extension on website. http://www.magentocommerce.com/magento-connect/cpc-strategy-feed-exporter-9392.html They have given following instruction to set up cron job. ...
1
vote
4answers
13k views

Howto setup cronjob to automatically start a import profile?

There should be a possibility to setup a cron, which does the dump click on "start profile" button. I want to automatically start an import profile which I have setup in Magento CE 1.8.1, which is ...
9
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><...
3
votes
3answers
977 views

Omitting schedule in module's crontab config xml

I see this in the Mage_Log config.xml <crontab> <jobs> <log_clean> <run> <model>log/cron::logClean</model> </...
1
vote
1answer
405 views

Cron.php not working and no “Cron (Scheduled Tasks)” configuration block

I've a magento 1.6 instance that doesn't trigger cron jobs when cron.php is hit. It also doesn't have a Cron (Scheduled Tasks) configuration section under Admin > System > Configuration > System. ...
1
vote
1answer
13k views

Magento cron jobs not getting scheduled

I just truncated the cron_schedule table.After that jobs are not getting scheduled.The table is always empty.Any ideas ? Thank you
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 ...
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 ...
4
votes
1answer
3k views

Quick script to prewarm cache using sitemap.xml

I was wondering if there is a small (nightly optimization) script out there that can clean all cache, including fpc (https://github.com/GordonLesti/Lesti_Fpc) [check] open the sitemap of ...
4
votes
2answers
9k views

Is it possible to setup a cron job to flush product catalog images?

You can obviously manually flush the catalog images cache by going to Cache management and clicking on "Flush Catalog Images Cache". My question is can this be set as a scheduled task? If so, what ...
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.
4
votes
1answer
187 views

Will start using cron jobs after two years result in problems?

I would like to start using the magento cronjob to send out review reminders automatically. Cron jobs have never run before (since its installation two years ago) on this installation if I'm correct. ...
1
vote
1answer
1k views

What is purpose of xmlconnect_notification_send_all cron job?

In magento xmlconnect_notification_send_all is a core cron job. What is exact purpose and scope of xmlconnect_notification_send_all cron job?
2
votes
3answers
2k views

Magento cron - question about timings

If my main crontab runs the magento cron.php every 30 mins and i have a cron job set in a modules config.xml to run every 15 mins. Will that mean the modules cron gets run: Once every 30 mins Twice ...
1
vote
1answer
1k views

Ways to disable bestsellers aggregation

We have a heavy store with a 400k+ products. So we decide to completely remove bestsellers aggregation feature. This suppose to reduce sql load, and to free space, occupied this huge unneeded tables. ...
4
votes
4answers
10k views

cron job command in Cpanel

I am using Magento CE 1.7.0.2 on Linux, cPanel environment. Search for proper command for cron job in cpanel So far I got: PATH to PHP /home/USERNAME/PATH_TO_MAGENTO/cron.php wget -O /dev/null -q ...
1
vote
1answer
2k views

Parsing error line 39 cron.php while running from command line

I have set a cron job using cpanel but I have found one issue. My another cron is running as expected and it is firing a testing mail every 5 minutes. I have latest version of magento 1.7.0.2 and I ...
1
vote
1answer
3k views

Strange issue with Cron not working

I am having a very unusual issue at the moment with a cron task not working. In the table cron_schedule, it marks the executed_at time but never a finished_at time. What makes this unusual is that I ...
2
votes
1answer
3k views

SQLSTATE[HY000]: General error: 2006 MySQL server has gone away on running cron job magento

I am working on site .suddenly i got this message on running cron job multiple times.i check my website for the same error but it works.I remove the cache and try to exit the code but after the error ...
2
votes
3answers
6k views

Custom script to update stock levels

I need to write a cron job which will import stock levels every 15 minutes from a wholesaler using SKU numbers as the unique identifier. My previous shopping cart had a table containing both the qty ...
1
vote
1answer
413 views

Crontab not working

I have created a simple module with a config file and one observer to run a cron every minute. But the cron is not registering in the database as well as not executing at all. I tried running cron.php ...
1
vote
1answer
457 views

Magento Cron Error

I am working on a custom Magento module and set up two Cron job for it. Every thing is working fine. I want to execute one process every hour for this i have used <cron_expr>0 * * * *</...
1
vote
1answer
2k views

Disable automatic currency update

The cron does update the currency rates. But because we want to set them manually I would like to disable the updating of the currency rate. How could I cancel the auto update of the currency rate ...
3
votes
1answer
2k views

Magento Sales Reports not Updating

My client uses his sales reports every day and the statistics used to be updated every day. We have recently moved to a new server and suddenly this has stopped happening - we have to manually click '...
0
votes
1answer
94 views

How to put a product in a specific category magento 1.5

So I have a question, I'm doing a Cron Job for magento where evaluates the date that the administrator puts in one attribute and the category where the product it's going in another attribute(drop-...
6
votes
1answer
9k 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 ...
3
votes
1answer
1k views

Cron does not reschedule currency_rates_update job until Cache Storage is flushed

One problem I have been assigned to investigate is to the updating of currency rates via the cron job. I was able to get it to update fine, but when I went to run it again after changing the time (by ...
3
votes
4answers
2k views

Ubuntu cron running but nothing happening in Magento

I have set up the Cron on my Ubuntu server and it is running every 5 minutes, everything ran fine for about a week, but now the cron still runs (it appears in the logs) but according to Magento the ...
4
votes
2answers
152 views

Why can't I access my custom cache key via CLI when it was set through a web request?

I have a method that calls the following code from a web request. Mage::app()->getCache()->save('bar', 'foo', array(), 60*5); I have another method that calls Mage::app()->getCache()->...
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 ...
4
votes
2answers
8k views

set up cron using config.xml

Hi i am tring to set up cron in magento using config.xml. but anyreason its not working, Here is the code which i am using. config.xml <?xml version="1.0"?> <config> <global> ...
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 ...
4
votes
1answer
534 views

Create adminhtml block in cron

I am running a cron that will email the products sold report daily. The issue I am having is that when I create the blocks in the cron model, the grid template attempts to load from frontend design ...
3
votes
1answer
2k views

How to refresh reports aggregation data on plugin install

I'm building a module where i'm adding a few extra columns to the default magento reports under Reports > Sales > Orders & Reports > Sales > Tax I'm adding the extra columns to the ...
1
vote
3answers
2k views

Error on the dailyCatalogUpdate cronjob

I'm writing to you with a problem to which I haven't been able to find a solution anywhere. The error occurs on execution of dailyCatalogUpdate cronjob. The execution time on the server was already ...
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 ...