Questions tagged [cron]

Denotes a question related to the cron system

347 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5 votes
3 answers
4k 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="...
Unknown's user avatar
  • 581
5 votes
1 answer
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, ...
Xavier's user avatar
  • 315
4 votes
0 answers
150 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. ...
Magecode's user avatar
  • 1,484
4 votes
3 answers
430 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....
vigeos.net's user avatar
4 votes
0 answers
1k 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/...
gasper's user avatar
  • 183
4 votes
1 answer
3k 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&...
KNKM's user avatar
  • 101
4 votes
0 answers
773 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 ...
Luiz Junior's user avatar
3 votes
1 answer
370 views

Error while reindexing using cron

Cron job failed to reindex we have to index the data manually. job_code : indexer_reindex_all_invalid status : error messages : Error when running a cron job
Abdul Rafay's user avatar
3 votes
0 answers
394 views

consumers_wait_for_messages not adhered to

I'm trying to run my message queue consumer in a cronjob but the process never exits which means my cronjob never exits either. Looking at the docs https://devdocs.magento.com/guides/v2.3/config-guide/...
benjick's user avatar
  • 33
3 votes
1 answer
462 views

Magento 2 scheduled task "log_clean" stuck in running state: "Class log/cron does not exist"

I am running M2 v 2.3.5-p1 In my cron_schedule table I have an entry as follows: 11929 log_clean running Class log/cron does not exist 2020-08-29 00:48:04 2020-08-29 01:00:00 As you can see it has a ...
AtothK's user avatar
  • 41
3 votes
0 answers
2k views

"There are no commands defined in the cron namespace" even though I don't have any crons running

I have the Magento_Cron module disabled, so as far as I know, no cron jobs should be running in my environment. Every minute or so, the text... There are no commands defined in the "cron" namespace....
Ben Rubin's user avatar
  • 549
3 votes
0 answers
4k views

Cron deleting expired quotes

Magento has a cron job for the deletion of expired quotes which hasn't changed since the first version I got in touch with, i.e. 1.6. The cron job is located in Mage_Sales_Model_Observer::...
HelgeB's user avatar
  • 4,501
3 votes
1 answer
291 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 ...
Niraj Nagar's user avatar
3 votes
0 answers
156 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 ...
vitoriodachef's user avatar
3 votes
0 answers
153 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&...
aude's user avatar
  • 143
3 votes
0 answers
168 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 ...
Head's user avatar
  • 135
3 votes
3 answers
5k views

Cron job hang - how to debug?

I have some cronjob that sometimes gets stuck in running status. That makes me think that for some reason they produce an error but I cannot find any related log. ( the column messages in ...
Fra's user avatar
  • 6,955
3 votes
0 answers
699 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 ...
Dev's user avatar
  • 369
3 votes
1 answer
570 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:...
Abhimanyu Singh's user avatar
3 votes
1 answer
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 ...
caffeinehigh's user avatar
2 votes
0 answers
250 views

How to set the CRON for every 4 hours?

I have created a custom cron group and below is the code. <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation=...
MagentoDev's user avatar
2 votes
3 answers
11k views

How to Solve: "Could not acquire lock for cron job: X" in Magento var/log/cron.log

With my M2 instance indexers in "Update on Schedule" mode... var/log/cron.log receives this warning near constantly: Could not acquire lock for cron job: indexer_update_all_views [] [] The cron ...
Gabriel Richards's user avatar
2 votes
0 answers
33 views

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

How to call cronjob before default cronjob execute?
pankaj parmar's user avatar
2 votes
0 answers
121 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 ...
Robert_Szczepaniec's user avatar
2 votes
0 answers
149 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 ...
thomas poidevin's user avatar
2 votes
0 answers
35 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 ...
santhoshnsscoe's user avatar
2 votes
0 answers
614 views

Magento 2.2.6: Scheduled catalog_product_alert cron jobs failing with NotLoadInfoImageException: Can't get information about picture:

I'm currently experiencing an issue where my scheduled catalog_product_alert cron jobs in the cron_schedule table are all failing to send a back-in-stock product alert. Each time these are executed, ...
m-kento's user avatar
  • 21
2 votes
0 answers
29 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->...
JeremyC's user avatar
  • 21
2 votes
2 answers
105 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 ...
Yomna Mansour's user avatar
2 votes
1 answer
481 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: /...
Alex's user avatar
  • 21
2 votes
0 answers
1k views

Magento 2 site crashing after 2 weeks (Believed cron or mysql problem)

I have a magento 2 site working however it keeps crashing randomly after running smoothly for 2 weeks. I reboot my site after the crash and it seems to stay for about a day or so before crashing again....
Greg's user avatar
  • 399
2 votes
0 answers
731 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 ...
vmp's user avatar
  • 398
2 votes
1 answer
225 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 ...
DevAnd's user avatar
  • 516
2 votes
4 answers
3k views

How Can I Schedule custom cron in every 5 minutes.?

cron_groups.xml <?xml version="1.0"?> <group id="custom_crongroup"> <schedule_generate_every>5</schedule_generate_every> <schedule_ahead_for>10</...
Midlaj's user avatar
  • 397
2 votes
0 answers
64 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 ...
Dr. Gianluigi Zane Zanettini's user avatar
2 votes
0 answers
188 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 ...
Ramesh KR's user avatar
  • 836
2 votes
0 answers
114 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 ...
Allysin's user avatar
  • 178
2 votes
3 answers
490 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 ...
Jamie14's user avatar
  • 21
2 votes
2 answers
1k 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 -> Advanceddoes not exist on my backend. This is what the Advanced menu looks like for me: ...
Shane's user avatar
  • 21
2 votes
0 answers
388 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 ...
Sarvagya's user avatar
  • 1,217
2 votes
0 answers
767 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 ...
Danzapps's user avatar
2 votes
0 answers
278 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 ...
Gauri Shankar Prajapati's user avatar
2 votes
0 answers
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 ...
Andy Mitchell's user avatar
2 votes
0 answers
709 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"...
mvistas's user avatar
  • 501
2 votes
1 answer
319 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 ...
mvistas's user avatar
  • 501
2 votes
0 answers
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 ...
Hiranya Sarma's user avatar
2 votes
0 answers
390 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 ...
Faceless Man's user avatar
2 votes
1 answer
966 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!
MrTo-Kane's user avatar
  • 3,656
2 votes
0 answers
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'...
lloiacono's user avatar
  • 3,386
2 votes
1 answer
536 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 ...
Mark Shust at M.academy's user avatar

1
2 3 4 5
7