Questions tagged [cron]

Denotes a question related to the cron system

Filter by
Sorted by
Tagged with
0
votes
0answers
12 views

Magento messageQueue publish is failing

I am trying to create a messagequeue consumer to run a cron job manually with parameters I have defined configuration files (see below), and I can run s:up and s:d:c successfully, but when I go to use ...
0
votes
0answers
13 views

Is there a way to automate catalog:images:resize after a product import?

First off, all product data is being imported in to Magento. I know it's an issue that the images cache isn't created so after the import products show placeholder images and we can fix this by ...
0
votes
1answer
28 views

Unable to get cronjob working with Magento2.4

Running Magento 2.4. After installing Magento I get the following error in the admin panel: One or more indexers are invalid. Make sure your Magento cron job is running. I've logged into SSH as ...
0
votes
0answers
28 views

Magento 2.4.1 currency update hourly by cron or change frequency

I have no problem with manual update currency rate in page Admin > Stores > Currency Rates How to create the cron run to update currency per hour? Here my settings, it's works but not per hour ...
0
votes
1answer
16 views

What is the best way to determine if a script is being run by cron in Magento2?

I need a piece of code to execute differently if it's being run by cron, what is the best way to check programmatically that cron is the execution source? I know that it can be done by checking for ...
0
votes
2answers
25 views

What is max_messages proper value for running message queue using cron job?

I'm using Magento 2.4.1, and this is my message queue configuration in app/etc/env.php 'queue' => [ 'consumers_wait_for_messages' => 0 ], 'cron_consumers_runner' => [ 'cron_run' => ...
0
votes
0answers
29 views

Magento 2: custom product import taking long time

We had a magento 2.3.0 multi-website shop and we use custom product import for shops. We use CLI script as a config for each shops and execute import with a common custom module handing few checkings. ...
3
votes
1answer
50 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
1
vote
1answer
104 views

Poor Site Performance after Upgrade from 2.4.1 to 2.4.2

After upgrading from Magento 2.4.1 to 2.4.2 on Feb 25th our install has been experiencing very poor performance. The 2.4.1 install ran flawlessly with an uptime of in excess of 80 days, now symptoms ...
0
votes
1answer
27 views

Force start / add sales_clean_quotes to cron job list in Magento 2

We started to have some issues with our quotes not being cleaned correctly. I checked list of cron jobs and could not find sales_clean_quotes in the list. We are currently running Magento 2.3.3. How ...
0
votes
1answer
45 views

Cron command to delete Magento 2 captcha images

my pub/media/captcha/base directory of Magento 2 has over 500k images! This causes the server's inodes to become overloaded. So I know that these images would be deleted every 10 minutes, but this don'...
0
votes
0answers
12 views

Magento 2 catalog price rules vanish after 2 days

I saw a million posts of this type of question but none of them have an answer to it and most of them are related to the Magento 1, so I was hopping that we can accomplish that here. Catalog price ...
0
votes
1answer
21 views

Cron job to delete catalog_product_entity_datetime table data, am I using the correct interface?

I have a query to select data from catalog_product_entity_datetime table. can I use below interface to grab the data from above table? If can't what should I do to grab data from this table? I don't ...
0
votes
0answers
8 views

Setting cron job for files and folder permissions

Each time a new file is generated at var/cache/mage-tags/* it does not have the correct rights and the customers can't access the online store. The only way to make it back to normal is to log in by ...
0
votes
1answer
22 views

When the indexer runs in Production mode?

When a Magento2 instance is in Production Mode, When the re-indexing takes place automatically or Do we have to create cron for re-indexing. Please advice.
0
votes
1answer
35 views

Magento 2 cron scheduled but not executing for sales email

I have a store in Magento 2.1.7. My emails were working fine a few days ago but suddenly it stops working. I also noticed my config fields in the admin panel are also not editable anymore and I'm not ...
0
votes
0answers
29 views

Why code different behaviour of Scheduled cron and command in Magento2

Following code I'm using for low stock mail for store wise in daily. $collection = $this->lowStockFactory->create() ->joinAttribute('name', 'catalog_product/name', 'entity_id',...
1
vote
1answer
21 views

Magento 2.3.5: Attribute value is changing automatically after every hour

I have created a custom attribute with Yes/No values in Magento 2.3.5. Its value is changing automatically after every hour from Yes to No. I can't figure out what is changing its value. Can any know ...
1
vote
0answers
190 views

Magento 2 Task “Update attributes for 2 selected products”: 1 item(s) are currently being updated.1 item(s) have been scheduled for update

Magento version 2.3.5 Does anyone know how to solve this? Cron is working fine I cross-check with indexing and when run this command - php bin/magento queue:consumers:start product_action_attribute....
0
votes
1answer
17 views

How to handle if curl request throws error in magento 2

I am receiving a response from using a curl request. But how do I check whether my curl request throws an error or not? because it takes 15 minutes to give a response from API.(but it works fine while ...
0
votes
1answer
49 views

Magento\Framework\Filesystem\Driver\File doesn't work in Cron Job Magento 2

Does any one know why $this->driverFile->isExists('pub/media/') doesn't work in Cron Job ? I've a Cron Job look like this: <?php namespace Namespace\Module\Cron; use Namespace\Module\Helper\...
0
votes
0answers
67 views

Import Product Programmatically

For product import, I used to create a CSV file from the text file (from customer) via programming. Then I place it in var/import folder Now, For Magento 1.9 My code was : $profile = Mage::getModel('...
0
votes
1answer
36 views

Do I need to disable cron jobs?

I have installed the cron job as proposed. Now I'm wondering if there are reasons when I should disable it temporarily, so that nothing gets in conflict. Is that necessary at all or is Magento able to ...
0
votes
1answer
16 views

Magento2: issue with cron run \ privilages

After upgrade magento to 2.4 I add privilages: cd <your Magento install dir> // 644 permission for files find . -type f -exec chmod 644 {} \; // 755 permission for ...
0
votes
0answers
11 views

Magento 2 email generated by cron not loading config vars

So I have set up a config to store the environment-specific URL path to images and it works fine to load a header image for emails driven by API calls but for a cron generated email it does not. Not ...
0
votes
1answer
209 views

Magento2.3 Could not open input file update/cron.php does not exist

I have a Magento2.3 based website and I did a mass update of products 2 days ago. However still at the top of the Magento admin panel I see a yellow bar that says Task "Update attributes for 50 ...
0
votes
0answers
34 views

Cron job is running but not updating Inventory

I am using mass product import and export Extension from Wyomind https://www.wyomind.com/magento2/mass-product-update-import-magento.html I have scheduled tasks to run csv profile after every 30 ...
0
votes
1answer
83 views

How do I send a email from the cron job? Magento 2 Unable to send mail

I did create a cron job with custom sql query. It will send an email notification to our support email. Can someone tell me what's wrong my email coding, from the log it said I am unable to send mail?...
0
votes
1answer
23 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
115 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
92 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
2answers
324 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
35 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 ...
3
votes
0answers
68 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/...
3
votes
2answers
702 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
273 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
30 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
331 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
303 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
16 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
25 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
309 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 ...
1
vote
1answer
179 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
428 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
39 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
99 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 ...
3
votes
1answer
162 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
67 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
147 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
41 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 ...

1
2 3 4 5
20