Questions tagged [cron]
Denotes a question related to the cron system
995
questions
0
votes
1
answer
11
views
magento 2 cron failed scheduled at 12 am
Please check the below code:
https://i.imgur.com/hwGJWtd.png
I have scheduled cron job for 12am midnight.
But I cannot see cron job scheduled at 12 am.
If I schedule cron job for in next 15 mins it ...
0
votes
1
answer
25
views
Explain meaning of column Schedule Status on the Index Management admin page
There are 2 columns on the Index Management page: Status and Schedule status.
Could you please provide detailed explanation what does each combination of values mean?
For example:
Status
Schedule ...
0
votes
2
answers
32
views
Magento2 - Set Cron job for particular custom dates
I want to update Special Price on promotional time period.
That needs to updated on particular date.
I dont want cron to be run daily, it can be any day in month at 12am in midnight.
I want to add ...
1
vote
1
answer
53
views
How to execute Cron from controller file in magento2
I have created a UI form admin html.
I have a requirement when the form is saved, Need to fetch data from custom module and perform some action.
The logic is working but if I have records of more than ...
1
vote
0
answers
50
views
Cron Job consumers_runner has an error: Deprecated Functionality: trim(): Passing null to parameter #1 ($string) of type string is deprecated
I have a store in Magento Cloud. There is particular job which is not working properly whenever CRON runs. Please check the error below,
Cron Job consumers_runner has an error: Deprecated ...
0
votes
0
answers
30
views
Magento 2.4.4: Error on magento.cron.log
I am getting thi error in my magento.cron.log.
preg_split(): Argument #2 ($subject) must be of type string, array given../html/vendor/magento/module-cron/Model/Schedule.php(107): preg_split('#\\s+#', ...
0
votes
2
answers
38
views
Cron job generates a different output compared with a controller in Magento 2.4.1
I implemented a custom plugin that loops through all products and generates a CSV file.
Even if the execute() function has the same code in both files (cron job and controller), the CSV file generated ...
1
vote
1
answer
112
views
Magento 2.4.3-p3 cron not running, but works manually
This is an intermittent problem as sometimes order confirmation emails are received, i.e. the cronjob runs automatically and doesn't remain as 'pending' in cron_schedule table. But most of the time it'...
1
vote
1
answer
48
views
PHP Fatal error: Uncaught Error: Class 'DOMDocument' not found in
magento.cron log return error:
PHP Fatal error: Uncaught Error: Class 'DOMDocument' not found in /home/mall/domains/myweb.com/public_html/vendor/magento/framework/Config/Dom.php:449
Stack trace:
#0 /...
0
votes
2
answers
121
views
M2.4.5 Bulk update attributes not working
In my Magento 2.4.5 open source store, bulk update attributes are not working. Cron is running, and it appears everything else is running fine. Emails are being sent out for example.
I have this code ...
1
vote
2
answers
99
views
Cron Debugger not Working
Can anybody tell me how Can I use debugger on the Cron.
I tried to do many things, but it doesn't work.
0
votes
0
answers
77
views
Service method specified as handler for of consumer "product_action_attribute.update" is not available?
Magento 2.4.4-p1
After updating to Magento 2.4.4-p1 I am getting this error in my cron logs:
Service method specified as handler for of consumer
"product_action_attribute.update" is not ...
0
votes
1
answer
138
views
CPU 100% most of the time - maybe a cron problem?
e are running shop on Magento 2.4.3-p1 with 50 000 SKUS, about 800 categories and 5 language mutations. About 65000 users and 80 000 sessions monthly.
We are using cloudways server: 32GB RAM 8 core ...
0
votes
2
answers
55
views
Remove cronjobs from old module - Magento 2
We had a module that created 3 specific cronjobs. This module was located in the app/code folder and we recently removed the entire module by removing the folder and then run the upgrade command.
But ...
1
vote
1
answer
11
views
Dynamic cron based on model value
I made a simple custom CRUD module.
My table have 4 columns: id, name, action, schedule.
Action is a select where I can select a controller.
Schedule is a text field where I can store for example: * * ...
1
vote
0
answers
776
views
import product data programmatically using csv
I am new in magento 2
I am trying to import product data programmatically using csv file.
The Error is shown below
My Folder and code structure are following.
This is My registration file.
Vendor/...
-2
votes
1
answer
51
views
How i create cron script for import product using csv?
Give me idea for creating cron script for importing product csv file
0
votes
0
answers
17
views
Can you configure cron jobs to run custom script on server?
I have written some custom scripts in typescript that I would like for my Magento2 application to regularly run. Ideally, I would like for my application to run these scripts once a day.
Does anyone ...
0
votes
1
answer
58
views
Cron job not running since upgrading to Magento 2.2.4
In my old version of my site i had a cron that ran at 2am every morning to product some reports from my Module. I have it set up as normal with my class in the cron folder and the correct xml in ...
1
vote
1
answer
118
views
Override the product alert cron frequency configuration to “Never”
Im new at magento and am stuck trying to modify the "catalog_product_alert"
I need to update it so even if a product has a list of customers subscribed to the stock alert the alert email are ...
0
votes
2
answers
114
views
Magento 2 : product quantity increasing automatically
I am using magento 2.4.1, the issue is randomly my product's quantity is increasing, it automatically increments the quantity after some time. I tried to keep eye on few products and found that each ...
1
vote
1
answer
33
views
Having hosting error
I have read a lot and tried a lot but I keep getting the message:
One or more indexers are invalid. Make sure your Magento cron job is running.
And this only count for Catalog Search, if I try in SSH ...
0
votes
0
answers
53
views
Magento 2 Payment Gateway Method Approach
Overview:
I'm creating my own payment method, this method redirects to an external page where customer needs to place credit card details. This page has SuccessURL (on Success payment action), BackURL ...
0
votes
0
answers
10
views
Product Custom option in date value set in cron running date
In front-end, product in custom option add for date,
Now i want to run cron on this date which set in custom value,
on this date cron run and email sent.
2
votes
3
answers
2k
views
Magento2: How to check if cron job is working or not?
How can I check if my cron job is created or not?
I have created a module that is creating shipment of orders with status processing,
my question is how can I check if the cron job is working or not?
...
0
votes
0
answers
71
views
Run cron crawler.sh litespeed cache
Documentation:
https://docs.litespeedtech.com/lscache/litemage/crawler/
Path to: M2-crawler.sh in server /home/user/M2-crawler.sh
Via SSH I run crawler in this way:
cd /home/user
bash M2-crawler.sh ...
1
vote
0
answers
91
views
Magento 2 Mailchimp Abadoned cart email not working
In the current Using version we are using Magento 2.4.
We are Using this Mailchimp Magento extension - https://marketplace.magento.com/mailchimp-mc-magento2.html
We upgraded the Magento version from 2....
0
votes
1
answer
169
views
Catalog Search Indexer runs indefinitely with alot of backlog
I've run into this issue with my indexers lately where my Catalog Search Indexer will run indefinitely with a lot of backlogged tasks.
And if, and when, I edit any product or even add any new ...
0
votes
1
answer
376
views
Problem with execution of cron Magento 2.4.3 - Cron execute twice!
I have problems running cron on Magento 2.4.3
My crontab is configured in this way:
#~ MAGENTO START ebd31839b0ed05bdb6ca8efa81d9bd8cc8bb1f90bbec3b545ed65991c8a7d49a
*/5 * * * * /usr/bin/php /home/www/...
0
votes
1
answer
122
views
Magento 2 Cron : How to add yes/no Configuration in Backend Stores -> Config -> Advanced -> System under Cron group?
I have created a custom cron and I want to add yes/no config field under Stores -> Config -> Advanced
-> System -> Cron group
I'm copying the /vendor/magento/module-cron/etc/adminhtml/...
0
votes
1
answer
86
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
1
answer
201
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
1
answer
122
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
3
answers
1k
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
1
answer
1k
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
0
answers
165
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
4
answers
1k
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 ...
1
vote
1
answer
268
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
1
answer
75
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
1
answer
829
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
1
answer
339
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
0
answers
84
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
2
answers
294
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
1
answer
162
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
1
answer
2k
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
2
answers
782
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
1
answer
329
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?
1
vote
1
answer
2k
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 ...
1
vote
1
answer
207
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
3
answers
200
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 $...