Questions tagged [cron]

Denotes a question related to the cron system

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

Core_config_data value in crontab.xml

I am creating a module to monintor teh cronjobas in Magento. I have created a field in system.xml where we cab store a value to schedule the job in de cron. And I want to place this value in cronbtab....
0
votes
1answer
12 views

Dynamic category module for price range based category

Thanks in advance. I am looking for a script or module that will run via cron and remove products from a category if their price is above 5 USD also it will add products that have a cost up to 5 USD.
0
votes
1answer
37 views

Magento2.4.2 Create order Programmatically not working using cronjob?

Type Error occurred when creating object: Magento\InventorySourceSelection\Model\Address, Argument 1 passed to Magento\InventorySourceSelection\Model\Address::__construct() must be of the type string, ...
0
votes
1answer
24 views

Set cron schedule config_path and value for website scope?

Saved the cron schedule config_path and value with websites scope and scope id but it is not working. When saved with default scope and scope id 0 in the core_config_data table works properly. The ...
0
votes
3answers
118 views

Magento 2: There are no commands defined in the "cron" namespace

Magento 2.4.3-p1 When I run bin/magento cron:run on the command line all is fine. No issues. When I let it run by the system's cron it does not work and I get this in the /var/log/magento.cron.log all ...
0
votes
0answers
19 views

How to make a configurable cron job that can be set from Magento 2 admin?

I want to make a configurable cron job that I can set from the admin panel but execute function that I define in cron does not run after a particular interval.
0
votes
1answer
74 views

Class ... does not exist In classReader.php line 34 in magento2

Just got a problem while compiling: Compilation was started. Area configuration aggregation... 5/9 [=======>-----] 55% 1 min 326.0 MiB In ClassReader.php line 45: Impossible to process constructor ...
0
votes
0answers
13 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 ...
2
votes
4answers
99 views

Product attribute update que stock

I was trying to do a mass update to add products to a specific store view in a Magento enterprise cloud 2.3.4 website. However, now I am just getting the below message on the top of all admin panel ...
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
17 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 ...
1
vote
1answer
40 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
11 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
1answer
31 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
62 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
22 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
42 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
52 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
71 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
164 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
116 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
89 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
528 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
19 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
69 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
35 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
68 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
36 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
96 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
73 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
179 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
41 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
35 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
95 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
67 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
19 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
106 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
43 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
98 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
152 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
2answers
192 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
125 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
72 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
54 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
31 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
46 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 ...

1
2 3 4 5
20