Questions tagged [cron]

Denotes a question related to the cron system

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

Magento2: How to execute Cron in non-root container on Kuberentes?

I've used the Bitnami Magento Helm chart to install Magento 2 on the Kubernetes cluster. By default, the pod and the container are configured not to use root users which is good from a security point ...
Soron's user avatar
  • 1
0 votes
1 answer
31 views

Cron job hangs n 'in process' status

I have implemented a bridge between an external system and Magento, retrieving product details for the external system and save it after processing to Magento. My problem is that when there are more ...
Sandy's user avatar
  • 31
0 votes
1 answer
42 views

Magento cron jobs fail because of attempts to write to the wrong part of the filesystem

I noticed for a while that although I could run the commands in my crontab just fine, they would not run from cron itself; when I looked at magento.cron.log, I found lines like this: Directory "...
James Edward Lewis II's user avatar
0 votes
0 answers
22 views

Submit to cron schedule from other cron jobs

How do you submit a job for the cron scheduler from another (cron)job? I have several cron jobs running with different time schedule. But I would like to submit a bunch of jobs whenever som logic is ...
AP87's user avatar
  • 145
0 votes
1 answer
64 views

cart price rule exact expiration date

Is there a way to get the exact cart price rule expiration date (the hour and minutes), I see that magento only stores the years, month, and day for to_date field.
Bob's user avatar
  • 11
0 votes
0 answers
26 views

Adding new store, Indexer issue on Magento 2.4

By adding a new store in my Magento 2.4.5-p1 EE, the indexers change to invalid status. This seems normal. If I execute a manual indexing via the CLI (bin/magento indexer:reindex), everything goes ...
Joachim Cecilio's user avatar
0 votes
1 answer
296 views

How does the cron functionality work in Magento 2, and how can I configure and manage cron jobs effectively?

I'm looking to gain a better understanding of how the cron functionality operates in Magento 2 and how I can utilize it for scheduling and automating tasks within my store. Specifically, I have the ...
user avatar
0 votes
0 answers
38 views

Create a cron to change "Out of Stock" status

I want to create a module or script which will run via cron once in a day to check the products whose qty is greater than 0 but with an "Out of Stock" status, and change it to "In Stock&...
alam's user avatar
  • 1
0 votes
0 answers
85 views

Magento2 cron of custom group does not get scheduled automatically

I have a default ddev magento2.4.6 environment running locally on my mac. My custom module should be scheduled and executed as cron, which works fine as long as I run it from terminal via php n98-...
y.y's user avatar
  • 103
0 votes
1 answer
39 views

Magento 2, xdebug when cron running show issue with bin/magento

When I run cron with debugging. I get the message like this It takes so long time to run my cron. So anyone knows to fix this issue? Thanks alot.
Simpa407's user avatar
0 votes
1 answer
66 views

How magento 2 default content scheduling work programmatically

what is the logic behind the content scheduling in magento 2. Using cron ? using event observer ?
Alok Tiwari's user avatar
0 votes
2 answers
60 views

Cache gets deleted every night when cron jobs are being executed

In my Magento 2.3.4 store the cache gets deleted every night at around 1. I figured that when I disable the calling of the cron.sh script, it does not happen. Is there a way to figure out why this is ...
user4095519's user avatar
0 votes
0 answers
56 views

sales.rule.update.coupon.usage not finishing

I have a new website, with less than 100 sales. And the cron job bin/magento queue:consumers:start sales.rule.update.coupon.usage --single-thread --max-messages=10000 runs without ending. It's been ...
sadlyblue's user avatar
  • 173
1 vote
2 answers
706 views

Does Magento 2 launch all RabbitMQ consumers only by cron?

I am very surprised by the fact that I found that it seems that Magento 2 launches all RabbitMQ consumers only by cron. I expected to see RabbitMQ as a separate application that accepts tasks from PHP ...
Dmitriy Morozov's user avatar
0 votes
1 answer
82 views

magento 2 cron failed scheduled at 12 am

Please check the below code: https://i.stack.imgur.com/ipifF.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 ...
user3411's user avatar
0 votes
1 answer
136 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 ...
Ruslan Mavlyanov's user avatar
0 votes
2 answers
119 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 ...
user3411's user avatar
1 vote
1 answer
189 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 ...
Manjunath's user avatar
  • 177
1 vote
0 answers
165 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 ...
Sunny Rahevar's user avatar
0 votes
0 answers
143 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+#', ...
mechanic's user avatar
  • 360
0 votes
2 answers
121 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 ...
iupaem's user avatar
  • 31
1 vote
1 answer
331 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'...
eleventy's user avatar
1 vote
1 answer
181 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 /...
Sylvester's user avatar
  • 2,184
0 votes
1 answer
457 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 ...
Ian's user avatar
  • 11
1 vote
2 answers
220 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.
Rana Zain's user avatar
  • 608
1 vote
0 answers
168 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 ...
user4095519's user avatar
0 votes
1 answer
277 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 ...
Milan Ďaďo's user avatar
0 votes
2 answers
179 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 ...
JGeer's user avatar
  • 1,419
1 vote
1 answer
17 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: * * ...
fmineo's user avatar
  • 199
1 vote
1 answer
2k 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/...
Alok Tiwari's user avatar
-2 votes
1 answer
119 views

How i create cron script for import product using csv?

Give me idea for creating cron script for importing product csv file
Alok Tiwari's user avatar
0 votes
1 answer
167 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 ...
gazZz's user avatar
  • 97
1 vote
1 answer
221 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 ...
joguz's user avatar
  • 39
0 votes
2 answers
293 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 ...
quickshiftin's user avatar
1 vote
1 answer
36 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 ...
Lightme's user avatar
  • 11
2 votes
3 answers
7k 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? ...
Afzel Arshad's user avatar
1 vote
0 answers
99 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....
sumeet bajaj's user avatar
  • 1,266
0 votes
1 answer
327 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 ...
Zyzzx's user avatar
  • 81
0 votes
1 answer
620 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/...
Andrea's user avatar
  • 1
0 votes
1 answer
172 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/...
Mohit Rane's user avatar
  • 1,935
0 votes
1 answer
138 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.
Oscprofessionals's user avatar
0 votes
1 answer
282 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, ...
user avatar
0 votes
1 answer
197 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 ...
ajay's user avatar
  • 35
0 votes
3 answers
2k 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 ...
omsta's user avatar
  • 692
0 votes
1 answer
2k 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 ...
Filip Sroka's user avatar
0 votes
0 answers
231 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 ...
Pawankumar's user avatar
2 votes
4 answers
2k 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 ...
Jayreis's user avatar
  • 685
1 vote
1 answer
413 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 ...
Nadroj467's user avatar
  • 541
0 votes
1 answer
125 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"...
senthil's user avatar
  • 1,707
0 votes
1 answer
2k 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?
Rafael Corrêa Gomes's user avatar

1
2 3 4 5
21