Questions tagged [cron]

Denotes a question related to the cron system

288 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
0answers
42 views

Magento 2 Send Order Emails Without Cron

Due to some issue order emails are not sending with cron and always remain with pending status. So I have to send it without cron. I have changed it to Send Asynchronously from Admin configuration. ...
4
votes
1answer
901 views

How to disable “Cron Job” logging into system.log file in Magento 2

My logs are being flooded with cron jobs updates. How can I disable this? [2019-02-27 06:28:02] main.INFO: Cron Job outdated_authentication_failures_cleanup is run [] [] [2019-02-27 06:28:02] main....
4
votes
2answers
181 views

Magento 1.9 Cron.php Works, Cron.sh Does Not

I've tried many solutions, but can not seem to get cron restored. It was working fine and suddenly it no longer does. I have Truncated the cron_schedule table, but it doesn't populate. If I run cron....
4
votes
1answer
2k views

How to capture automatically Paypal authorization payment?

The payment action of PayPal it's set to authorization (I need it, I can't set to sale), therefore then I need to capture the payment. I know that I can do it manually from the invoice sending page, ...
4
votes
0answers
992 views

magento2 cron schedule not running, cannot understand why

Crontab * * * * * php -c /opt/alt/php56/etc <magento2_path>/bin/magento cron:run | grep -v "Ran jobs by schedule" >> <magento2_path>/var/log/magento.cron.log * * * * * php -c /opt/...
4
votes
1answer
2k views

Magento cron jobs are not scheduling in the cron_schedule table

I have cron task in my custom module for sync data. Below is the code in my module config.xml <config> ------- <crontab> <jobs> <tal_intermediate_cron_product&...
3
votes
0answers
80 views

Create Magento 2 cron job task programmatically

To sync data between 2 portal, we need some action manually trigger, on click of button need to schedule a cron via programmatically. I have found solution but it is for Magento 1. For Magento 2 what ...
3
votes
2answers
2k views

Magento2 : Cron run not working

Below given is crontab.xml <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Cron:etc/crontab.xsd"> <group id="...
3
votes
0answers
70 views

What are the different Magento 2 cron jobs doing?

Magento 2 specifies three cron jobs to be run: * * * * * <path to php binary> <magento install dir>/bin/magento cron:run | grep -v "Ran jobs by schedule" >> <magento install dir&...
3
votes
0answers
95 views

My deployment scripts are utilizing all the ram and taking forever

Even if I increase the ram it will end up just using it up and bogging down. I'm not sure if this is riding the gray line of what should be in magento stack exchange vs ask ubuntu. Why are these ...
3
votes
0answers
433 views

Magento 2: Setting cron job for changing order status, can affect on performance?

I want to set cron job for order confirm. Below controller code Confirm.php used for confirm order from my fronted custom module. This will Set order status confirm. This is working fine. <?php ...
3
votes
1answer
2k views

Magento 2: System upgrade fails Readiness Check (always_populate_raw_post_data = 0)

I am trying to upgrade Magento 2.07 to 2.1. I pass all the checks apart from the one below: Your PHP Version is 5.6.22, but always_populate_raw_post_data = 0. $HTTP_RAW_POST_DATA is deprecated from ...
3
votes
0answers
640 views

Cron generating a lot of process causing the server to hang (Magento 2.0.2)

I have a VM running ubuntu with no problem: Tasks: 124 total, 1 running, 123 sleeping, 0 stopped, 0 zombie %Cpu0 : 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st ...
2
votes
0answers
26 views

Magento 2: How to execute custom cronjob before default cronjob execute?

How to call cronjob before default cronjob execute?
2
votes
0answers
26 views

Magento 2 reindex cronjob frequency

Magento 2.3.0 It's more like an open question than a problem. By default reindex by schedule is fired every minute. Why is that so often? By your experience, can default cronjob be set less often ...
2
votes
0answers
384 views

Magento 2 Could not acquire lock for cron group: default

We just migrated our Magento 1 site to Magento 2. At some during the process, the default cron group stopped running. This was after data migration and possibly right after the first test orders were ...
2
votes
0answers
56 views

ELB + ECS + EFS + RDS amazon,cron job with magento 1.9

We are migrating our Magento 1.9 to AWS. We have already implemented an RDS MySQL database, an EFS for static and PHP files. Alsa with we has a load balancer connected with for the moment 2 servers ...
2
votes
0answers
20 views

Cron email not taking store smtp in multi site environment

We have a multi site magento installation. For each website, we have configured different smtp settings. But, when we run cron to send abandoned cart email, it is always selecting the default smtp ...
2
votes
0answers
175 views

How to run external script outside of magento 2 root directory?

I have made a few external php scripts to update quantity and tracking numbers,etc Right now, i'm putting them in magento root and set the permission to 640. However, it's still accessible by the ...
2
votes
0answers
19 views

taxClassId are not saved with the rest of the product

I'm trying to update some attributes of my product by a cron to avoid common mistakes. The code causing me trouble is executed in a loop: foreach ($storesIds as $storeId) { $this->...
2
votes
2answers
27 views

how to pass cron job result to a controller controller

I need to filter products based on 3 attributes and display those attributes to storefront, I've about 25000 products, so filtering them in each request takes 20 seconds. I thought about creating a ...
2
votes
1answer
108 views

Crons not working in Magento 2.2.6

I am using Magento 2.2.6 with a theme. www.rbhomoeoshop.com The store is using rule to offer x amount of discount on each and every product. There is no condition for discount. after every 2 or 3 ...
2
votes
1answer
269 views

Magento 1.9.4.0 PHP 7.2 Cron job problems

My settings: Server OS ‪Debian 9.6‬ Plesk 17.8.11 Magento 1.9.4.0 PHP 7.2 When I run schedule task cron.sh I get this: Task "/httpdocs/cron.sh" successfully completed in 0 seconds, output: /...
2
votes
0answers
105 views

Magento 2. What is the recommend way to disable a core cron job?

Magento comes with it's own cron jobs. What is the recommended/cleanest way to disable on of such crons? I could do a rewrite of the worker class but I'm guessing there is an easier way. Any pointers ...
2
votes
1answer
607 views

“No callbacks found” error message in magento 2 cron job

I have created a crontab in my custom module and scheduled at every 10 minutes. It is working fine, when I am running the "php bin/magento setup:upgrade" command. So, first time it is working fine, ...
2
votes
0answers
331 views

Magento 2 Cron job not running with constructor

I am currently developing a drop shipping module for our Magento 2.2.3 store. For this I am creating a cron job to send a post request to my API that pulls in all the orders where a Magento 2 order ...
2
votes
0answers
129 views

Installed cron scheduler but I see now that cron is having issues

I'm looking at the timeline & I see that cron keeps stopping & the cron jobs are not running. I get this message "Last heartbeat is older than one hour. Please check your settings and your ...
2
votes
0answers
41 views

How to run my custom code before a cron job (catalogrule_apply_all) WITHOUT overriding Magento's core?

Plain and simple: my module must do stuff before Magento's own catalogrule_apply_all (meaning: Mage_CatalogRule_Model_Rule::dailyCatalogUpdate()). I see no event rised neither in this method itself ...
2
votes
0answers
67 views

How to get Customer Id in Cron job function?

namespace Cron\Test\Cron; class Example { protected $customerSession; /** * Construct * * @param \Magento\Framework\View\Element\Template\Context $context ...
2
votes
0answers
90 views

After Hostforweb migration - Order Confirmation Emails are not being sent; Everything else works fine!

Magento 1.9.1 Aschroder.com SMTP Pro Email Extension Sendgrid.com We were affected by the Hostforweb recent meltdown (migrating the site to New York having an outage and then being assigned new IP's ...
2
votes
3answers
155 views

Run custom PHP file via Cron job

I am after taking over a Magento 2 site from another developer. Once a day they pointed their browser to a PHP script in the root directory that would create/update certain products. Instead of ...
2
votes
2answers
744 views

Stores->Configuration->Advanced->Advanced Not showing up

I'm trying to set up a custom cron job as per this tutorial, but Stores -> Configuration -> Advanced -> Advanced does not exist on my backend. This is what the Advanced menu looks like for me: This ...
2
votes
0answers
287 views

How to set cron schedule dynamically from database?

I have a module which is basically a grid and has entry for different jobs. Each entry here represent a cron and all these crons are mentioned in crontab.xml. Now I need to use the schedule from a Job ...
2
votes
3answers
3k views

Cron job hang - how to debug?

I have some cronjob that sometime get stuck in running status. That make me think that for some reason they produce and error but I cannot find any related log. ( the column messages in cron_schedule ...
2
votes
0answers
436 views

Magento 2 - Disable cache invalidation temporarily during processing, then invalidate appropriate caches?

I'm in the process of developing a bespoke product import/sync module for Magento 2 and I'm trying to find ways to speed the process up as much as possible. The full set of products contains over ...
2
votes
0answers
226 views

PHP Fatal error: Class 'Magento\Update\Status' not found

My cron job is running but i am still getting these errors in error_log file. PHP Fatal error: Class 'Magento\Update\Status' not found in /update/cron.php on line 15 and when i am installing any ...
2
votes
0answers
4k views

Order Confirmation Email Not Sending Magento 2

New order confirmation emails are not being sent out when an order is processed. If I add a comment to the order and click 'notify customer by email' that will send the update to your order ...
2
votes
0answers
480 views

Magento2 Cronjob and Generate Schedules Every

I create a custom module, that updates prices and product stock. This is two different jobs in the same cron group. My crontab.xml is: <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"...
2
votes
1answer
256 views

Read a custom xml file in a cron

I just create a custom module on Magento 2.0.7. I have a block that reads a custom folder Example: $files = scandir('_product_updates'); And everything works. Now, I create a cron, that should read ...
2
votes
0answers
307 views

magento 2: cron to run after exception also

I have created a custom module which has cronjob to run after certain interval: <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:...
2
votes
0answers
2k views

magento cron trigger shutdown

I am writing custom cron to send a mail in every two minutes.I am also using it with AOE Scheduler extension. Code: /var/www/magento2/app/code/local/Produpdates/Notify/etc/config.xml <?xml ...
2
votes
0answers
376 views

What are the best practices for Magento CRON (& cache cleaning)?

I finally got CRON scheduling working properly (no thanks to Bluehost), and discovered a dizzying array of options--even more after I installed Aoe Scheduler and CacheCleaner. Are the default CRON ...
2
votes
1answer
711 views

Magento 2 - How to create the batch file to export product to csv file

In Magento 2, How to create the batch file to export product to csv file? May you show me step by step, Thanks!
2
votes
0answers
2k views

AOE scheduler Multiple tasks with the same job code were piling up. Skipping execution of duplicates

Since yesterday I have a problem with one cronjob that is not running anymore. This cronjob was working fine for several months and yesterday we had to stop it and then re enabled it 6 hours later. I'...
2
votes
1answer
450 views

What is the correct way to properly register & run automated cronjobs in Magento 2?

I'm trying to define a cronjob for a custom module, but having a hard time going through the proper flow of scheduled cronjobs. Few things of note: It seems that third-party cronjobs are only ...
2
votes
0answers
947 views

Magento 1.9.1.0 Cron job / Order confirmation mail not sent

I've set up a Cron job through cPanel for my Magento install using the code: * * * * * wget -O /dev/null -q http://www.webpage.com/shop/cron.php > /dev/null (the cron.php file is in the ...
2
votes
0answers
276 views

Cronjobs Reporting Negative Execution Times?

I'm getting a fairly weird result trying to check the status of my Magento store's cron jobs. I tried installing both AOE Scheduler and Noovias Cronjob Manager. Both of them give me something like ...
1
vote
0answers
18 views

Magento 2 Custom cron not working

I am trying to run custom cron but, I got below error in system.log while execute cron:run command. main.WARNING: Could not acquire lock for cron group: default, skipping run [] [] crontab.xml ...
1
vote
0answers
21 views

Cron task problem

Recently, I deleted my child theme created on the basis of blank and installed a new theme that I bought in the store. But I noticed that my previous theme still does cron tasks. Image.jpg is ...
1
vote
0answers
23 views

static.php running multiple instances and hitting 100% cpu

I've recently installed, then uninstalled the Simplify Magento Module after some issues started cropping up. Now the site hits 100% CPU whenever I load just the homepage. Still on testing environment,...

1 2 3 4 5 6