Questions tagged [cron]

Denotes a question related to the cron system

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

Magento 2 update inventory programmatically using cron

I want to update the product inventory. Get inventory from another platform using cron once got inventory need to update in Magento but what is the best way to update some time I will get more than ...
0
votes
0answers
9 views

Magento Cron Job is Running a Command It Shouldn't Be?

We have four CLI commands: submit, receive, cancel and import. The first three: submit receive and cancel are all set up to run via the cron job. However, I keep seeing in the logs that the import ...
0
votes
0answers
13 views

Magento 2 | getData("news_from_date") return wrong value

I created a php file external to Magento2 with a foreach that takes the value of the "news_from_date" attribute. On many products the "news_from_date" field is empty but despite ...
0
votes
1answer
18 views

Magento 2 : Cron hanging - can't debug

Running into an issue on Magento 2.4.3. Where cron jobs appear to be running correctly but when I run the below I keep seeing cron jobs hanging stuck for an hour, days or more, I have to manually kill ...
0
votes
0answers
10 views

Why aren't Magento sale grids using Mview (and indexer)?

By default Magento implement Mview/indexer for some grids for example customer grid. But for sale grids (sale, invoice, credit memo, shipment) Magento use a cron job to insert/update new data (if ...
0
votes
0answers
16 views

Magento crontab vs Magento Cron (Scheduled Tasks)

I am working with the Magento2 Cron functionality, I have created a cron in the crontab.xml (Every 5 mins) default group <job instance="Namespace\ModuleName\Cron\ServiceOrdersStatusUpdate"...
0
votes
1answer
23 views

How to avoid to have many missed and pending cron jobs?

This below is how my cron_schedule table looks like, how could I avoid having so many cron jobs pending or missed?
0
votes
1answer
16 views

How to find the queue of CSV to export?

I'm running a Magento 2 Commerce and trying to export it via admin panel it didn't work, it seems like it's running forever in the background. How could I check the export queue and clean it? Is it ...
0
votes
0answers
32 views

Crons setup, Amasty's SMTP Email Settings extension installed and working but no Order Confirmation Emails going out

Magento 2.4.2-p1 Porto theme SMTP Email Settings extension by Amasty We had Amasty install the 'SMTP Email Settings' extension which appears to be working = when doing a test - it says: Connection ...
0
votes
2answers
31 views

Setting up cron jobs in Magento 2 via cPanel?

Magento 2.4.2-p1 I'm trying to set up the cron job that does the Order Confirmation Emails via cPanel. In our Magento 1.9.4, it looks like this: /opt/cpanel/ea-php70/root/usr/bin/php /home/...
1
vote
1answer
52 views

How to use curl in magento 2 cron?

I have cron set up which will run to import the data using the curl. I want to use curl using magento's way
0
votes
1answer
27 views

How to clear queued email messages so they don't send

While moving from M1 to M2 a number of sales-related emails are generated and stack up in the queue. I don't want these messages to be sent to customers regarding "old" orders. How can I ...
0
votes
1answer
51 views

Is there any way to flush cache (periodically) using Magento 2 cron?

I need to flush some types of cache (or maybe all of them) by Magento cron tasks (not system native), also I might need it to be done periodically, is there any way to do this?
0
votes
1answer
50 views

How to detect CRON issues from the server side?

It seems like we're having CRON issues, I usually check it via this command below. ./n98-magerun2.phar sys:cron:history How could I check it more precisely?
0
votes
1answer
262 views

Fatal error: Uncaught Error: Cannot access parent:: when current class scope has no parent in cron job magento2

I have a cron job in magento 2, since I have added dependencies it has stopped running. I am getting the error Fatal error: Uncaught Error: Cannot access parent:: when current class scope has no ...
0
votes
0answers
15 views

What cron job modify the vendor

Which cron job may modify the code in the vendor/magento folder? My magento version is community 2.3. And the only task into crontab is "php bin/magento cron:run". I have neither configured &...
1
vote
1answer
16 views

Custom module Cron job on specific time not working

I've written a custom module and the module has to run every Wednesday at 07:10. I've written a cron job and in the schedule. Below is the code added in crontab.xml <?xml version="1.0"?&...
0
votes
3answers
50 views

Magento 2: existing products doesn't load regular price through a cron job

Everything was work fine. But now from cron doesn't load productFactory right! Can somebody please help me? public function __construct( Context $context, \Magento\Checkout\Model\Session $...
0
votes
0answers
27 views

Magento 2: Set cron schedule dynamically from frontend

I want to set schedule of cron job from values chosen by the customer from the frontend. I have created checkboxes on checkout page through which I want to set the schedule of email reminders chosen ...
0
votes
0answers
8 views

Magento 2: Trigger reminder/followup email by customer's choice

I want to add an option(buttons) in the end of the checkout through which the client can choose: No reminder email (default selected) Receive 1 reminder email (in his language) after | 15 days| 1 ...
0
votes
1answer
38 views

Magento 2 cron reindex causes Page Cache to be invalidated

I am running the following to reindex my products and categories on a schedule /opt/plesk/php/7.4/bin/php -c /opt/plesk/php/7.4/etc/php.ini /var/www/vhosts/mydomain.co.uk/httpdocs/bin/magento indexer:...
0
votes
1answer
28 views

Can I pass a file into a function?

I have a function from a 3rd party plugin that uploads data using a CSV. The beginning of the function in the resource model that does the work looks like this public function uploadAndImport(\Magento\...
0
votes
0answers
26 views

Magento 2 - Why do I always have to manually reindex?

I have setup my cronjob and it runs fine. But sometimes we have to manually execute php bin/magento indexer:reindex to manually reindex everything, otherwise new customers are not showing in the ...
1
vote
2answers
48 views

Inventory cleanup cron job is not running

The cron job at magento/module-inventory-reservations/etc/crontab.xml does not show up in the general pool in the admin backend. It does not show up in cron_schedule table. It does not run. All other ...
1
vote
0answers
38 views

Index catalogrule_rule still invalid after reindex by cron

I have an issue with indexes becoming invalid once a day even though nothing has changed (neither in front end or back end). When this happens all other indexes but catalogrule_rule and ...
0
votes
1answer
128 views

Magento 2.3.7 upgrade cron error

I've recently upgraded from Magento 2.3.6-p1 to 2.3.7. Front end and everything works great (and on PHP7.3), but the following cron fails: /usr/bin/php7.x /path/to/magento/bin/magento setup:cron:run &...
0
votes
0answers
36 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
26 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
50 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
56 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
17 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
74 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
39 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
68 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
132 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
122 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
100 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
16 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
37 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 ...
1
vote
0answers
33 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
27 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
41 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
30 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
26 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
436 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
68 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
209 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
146 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
160 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
21 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 ...

1
2 3 4 5
20