Questions tagged [cron]

Denotes a question related to the cron system

Filter by
Sorted by
Tagged with
0
votes
1answer
6 views

Create a custom magento cron job

Is it possible to create a custom magento cron job. The task I want it can be done by run sql query using php to process some logic of the sql result send out email to customer service. cron job ...
0
votes
1answer
26 views

How to run cron once a day at midnight

I want to run a cron once a day at midnight so have added this command to crontab -e. 00 00 * * * /usr/local/bin/php /home/../public_html/bin/magento cron:run --group="crongroup" but not ...
0
votes
0answers
41 views

Magento 2.4 Export Invoice csv export programmatically with cron to FTP

In the Admin Panel Sales > Invoices, one can manually export a list of invoices to a CSV file. Unfortunately, sales invoices cannot be scheduled by default for exports like products or customers. ...
0
votes
1answer
44 views

RabbitMQ and cron_consumers_runner

If you are running RabbitMQ in M 2.3/2.4 and have the env.php section set up for amqp: 'queue' => [ 'amqp' => [ 'host' => '127.0.0.1', 'port' => '5672', '...
0
votes
1answer
25 views

Sending PDF via email works when command run on console, but not when run by a cron job

I've become stuck, I want to send a custom report via email in a pdf format. It's strange because it works correctly when I run the command via the console, but when it's run via a cron job nothing ...
2
votes
0answers
28 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/...
2
votes
2answers
93 views

Magento 2 not spawning consumer processes i DB (RabbitMQ)

I have setup Magento 2.4 with RabbitMQ. You can see my configuration here. 'queue' => [ 'amqp' => [ 'host' => 'rabbitmq.host', 'port' => '53003', 'user' => '...
1
vote
1answer
16 views

How to enable asynchronous indexing in production mode?

I want to enable the asynchronous indexing, but the option is inside the Admin menu below, which is available just in developer mode. Stores > Settings > Configuration > Advanced > ...
0
votes
0answers
21 views

Magento to compiling issue | Requested class did not generate properly

Firstly please don't label it as duplicate as I have tried everything suggested in other answers. Issue is that content of generated dir does not generate properly. Because generated dir is never ...
0
votes
2answers
77 views

Should cron jobs get terminated or run forever?

When I do ps aux | grep queue I get the following list of processes that were started via cronjobs: webmast+ 2309182 0.0 0.0 366472 4592 ? S Sep29 3:29 /usr/bin/php /var/www/html/emark/...
0
votes
0answers
31 views

ElasticSearch indexer_update_all_views error with index

I'm using ElasticSearch 6.8 + ElasticSuite in a Magento 2.3 Cloud, it's multistore. I'm seeing many errors in my cron history related to the job indexer_update_all_views, when I check the file var/log/...
0
votes
1answer
14 views

Is there any way to kick off a very specific cron process in Magento 2 using command line?

We're working on troubleshooting a bug where product back in stock alerts aren't sent on our production or staging environment, but they are in dev(after a custom patch was applied to all three). ...
0
votes
1answer
15 views

Magento Cloud Indexer and Catalog issue

I'm having a lot of issues during the reindex of my catalog in Magento Cloud, sometimes I saw error logs related to ElasticSearch. How could I know if I need to request some improvement related to ...
0
votes
2answers
59 views

How to disable any specific cronjob in magento 2.3.4?

Sometimes indexing cron process went away and a similar thing happens for the consumers_runner and yotpo_yotpo_orders_sync cron job so I want to disable the consumers_runner and ...
0
votes
1answer
67 views

Magento Business Intelligence service errors

Every day we are seeing the following error appear at the top of the Magento admin interface: The message states: Failed to synchronize data to the Magento Business Intelligence service. [Retry ...
0
votes
0answers
103 views

Magento 2.4 strange issue with crons

After upgrading to magento 2.4 and monitoring some days now I noticed in admin that mass update attributes in catalog are having strange behaviour. When I update some attributes in catalog I get the ...
0
votes
0answers
14 views

Multiple magento vhost listening to same queue in different rabbitMQ vhost - Cron is not working

I have setup 2 vhosts for Magento 2.2. Both listen to same rabbitMQ instance with different vhosts. However, the queue names are same (separate queues are created in eah vhost). Now, when we run the ...
0
votes
0answers
34 views

How to run a Cron on particular button click on Magento 2?

I want to run a Cron on particular button click which I have to create in Magento Backend. Basically i want to run cron when i click that button and it will take some data from a txt file and create a ...
2
votes
0answers
73 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 ...
0
votes
1answer
22 views

Debugging cron error .update_in_progress.flag: failed to open dir: No such file or directory

I've got a Magento2 instance running from 1 year. Since last week I'm receiving once/twice a day an email whith the following cron error In File.php line 405: FilesystemIterator::__construct(/var/....
0
votes
2answers
53 views

cron schedule table is empty after truncate

in my website send mail is not working so I truncated the cron_schedule table (before there are entries about sales order emails), the reason I truncated because the admin panel wasn't loading its ...
0
votes
0answers
19 views

Magento 2.4 | Cron job getting missed multiple times

Please review the attached screenshot. After upgrading Magento with latest version, we are facing this issue with cron. Cron getting missed multiple times. We have follow the below steps but still ...
0
votes
3answers
59 views

How to get data from core_config_data table in Magento 2?

I have created a cron and in that i want to get some values from core_config_data table in my Cron File. My Cron file is : <?php namespace Mageplaza\HelloWorld\Cron; use Psr\Log\LoggerInterface;...
0
votes
1answer
49 views

How to run cron job at a particular time in Magento 2?

I want to create a cron job which update product price which are disabled and the cron run at a specific time 1 time in a day. I have created a custom basic module from taking reference from https://...
0
votes
0answers
12 views

Cronjob executing but not doing anything

Junior dev here. I installed a module which uses cron jobs. The cron job gets executed but there are no changes done to the system. If everything worked correctly, I would be able to import products ...
1
vote
1answer
21 views

Best practice for setting up CRON:INDEX from admin

Magento Cron for all groups are currently set for Each Minute. Magento Support recommends this too. However I am facing Server Slowness issues specially in the admin when this is turned on to each ...
0
votes
1answer
17 views

Command line enable / disable static blocks

I would like to be able to enable and disable static blocks via the command line, is there a utility that provides this functionality. My use case is to configure a cron job to periodically enable ...
2
votes
0answers
42 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=...
0
votes
1answer
17 views

Magento 2: Unable to unserialize value. Error: Syntax error

I'm creating Order export cron module for Magento 2.3. I'm getting below error Cron-job "monthly_report" threw exception InvalidArgumentException In Json.php line 39 ...
1
vote
0answers
16 views

Import add and update products with their attributes in a CSV file and cron job Magento2

I am using Magento 2.3.3 and wants to import products using cron and csv. I have google Sheet which contains all products data and sheet's data changes continuously. So I have to run a cron every day ...
0
votes
1answer
18 views

Schedule cron job every day

how start cronjob every day? I'm not too strong in schedule <crontab> <jobs> <ebayautopurchase_deleteproducts> <schedule><cron_expr> * ...
1
vote
3answers
120 views

Run cron for indexation every hour

This is the first time I want to run cron for indexation every hour. I found multiple tutorials but none of them give me what I'm looking for or skip some steps. I'm using OVH as a web hosting, ...
1
vote
0answers
13 views

M2: issue with cron table with language translator

I added a large number of CRON tasks to the translation table. Now when I open this table I see an error: Manage Cron Warning: DOMDocumentFragment::appendXML(): Entity: line 1: parser error : CData ...
0
votes
1answer
22 views

Debugging Magento 2 cron errors when no message is left?

Quite often when I'm attempting to create a CRON job I'll mess up along the way and the job will fail to run. Typically I'd check my logs and see where I went wrong, put the missing semicolon back, ...
0
votes
0answers
20 views

Cron job is only working when I run the cron command manually

I have created a cron job and its only working when I run the below command: php bin/magento cron:run But the cron should run automatically. What Could be the issue and why the cron is not running ...
0
votes
0answers
11 views

Magento 1 - Automatically update backend/admin settings on a certain date and time

In germany the taxes are getting lowered because of corona at 01.07.2020 on 00:01 o'clock. The problem is, that no one works in our company in this time, so we have to automate the setting change. ...
1
vote
3answers
748 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 ...
0
votes
0answers
76 views

Magento 2 Captcha Images Not Deleting (thousands of files using space)

We've got a Magento store running on version 2.2.5. The captcha images that are generated in /pub/media/captcha do not seem to be automatically deleting once expired. I know that the ...
0
votes
0answers
12 views

Why would cron be sending MANY Emails from root@server to user@server?

Magento ver. 1.9.3.7 Porto theme We were (Email) blacklisted so I started digging around and on one of our Magento accounts, there are many Emails (1460 every day) which are being sent like this: ...
0
votes
1answer
31 views

Magento 2.3.3 not sending any mails

My Magento 2.3.3 is not sending any emails from the solution. As far as I can see, the cron job is running, the mail settings looks fine and are enabled. I think I have tried it all, but no luck, it ...
0
votes
1answer
36 views

how often that magento 2 reindex cron job run?

Anyone know how often that Magento 2 Reindex Cron job run daily? thanks
0
votes
0answers
15 views

How often should Cron schedule run in Magento2 for 10,000+ products?

I have a Magento2 site with 13,000 products loaded. Looking at the server CPU usage, I can see that it is currently consuming ~60% CPU at all times. I have looked at the processes using the "top" ...
0
votes
1answer
46 views

How to solve slow performance, slow and long running CRONs in Magento Cloud?

I'm having these two main issues below in my Magento 2.3.2 Enterprise Cloud. Heavy SQL load and site performance issues. Long-running and stuck CRON. How could I solve it?
2
votes
1answer
509 views

why message queue consumer never exiting when --max-messages specified?

I'm using Magento 2.3.4 with RabbitMQ configured in the env.php to process my message queues, I start consumer using: bin/magento queue:consumers:start ConsumerName --max-messages 1 But the consumer ...
0
votes
0answers
11 views

Indexer with custom cron_group

We have created a new custom indexer as per requirement. And now we need to schedule that indexer with custom cron_group which can be scheduled according to business. We don't want to schedule with ...
0
votes
0answers
8 views

Cron job Creation

I've created a module with a cron, the module is registered with no problem and the crontab.xml looks like this: <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
0
votes
1answer
27 views

Magento2 Cron not running

My cron file code as follows.crontab.xml <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Cron:etc/crontab.xsd"> <...
0
votes
1answer
52 views

Magento2 /bin/sh: /home/appleserver2/public_html/magento2/var/log/update.cron.log: No such file or directory

i have delete magento2 installation by directly deleting the directory and database. however i am getting email in every second and the mail content is as below /bin/sh: /home/appleserver2/...
0
votes
0answers
24 views

Is there any way to Schedule a Cron Programatically

I have created a CRON from My Customer this extension has a CRON. now the client is asking me to do something that CRON should schedule automatically on Magento Extension Installation He doesn't want ...
0
votes
1answer
21 views

Cron job not launching automaticaly

I've created a CRON job which I want to launch once a time every day. This cron is sending me an email when it's launching. See my crontab.xml <?xml version="1.0"?> <config xmlns:xsi="...

1
2 3 4 5
19