Skip to main content

Questions tagged [cron]

Denotes a question related to the cron system

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

Method setProductLinks is very slow

I am looping trough 50.000 products. Most with linked items. But it takes forever. It can only handle 1-3 products/second? Is their a faster way than this? ProductLinkInterfaceFactory $productLink, ...
AP87's user avatar
  • 209
0 votes
1 answer
33 views

Magento 2 upload file in backend form read and insert data through cron

I have completed upload file saved in temp path. How to read those file in cron every time file was new.
kanidhaya's user avatar
  • 180
0 votes
0 answers
11 views

icecat cron is always running, but no products updated?

I am using https://github.com/IcecatNV/magento-extension to import data from icecat into my Magento 2.4.6 store. The extension is connected to icecat, I made the mapping and when I import data on ...
user4095519's user avatar
0 votes
1 answer
36 views

Disable crons permanently in a specific Cloud Environment

It is becoming very common for my deploys to the Integration branch in Cloud to get stuck because it is impossible to kill the crons. And when I try to SSH into the server to kill them, it takes ages ...
Eliacim DAVILA - CENSERE's user avatar
0 votes
2 answers
44 views

Error in your cron job

Good morning. I have a CRON stuck because it fails to run due to this error. How can I avoid it and where should I intervene? SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or ...
Vito Lanave's user avatar
0 votes
1 answer
30 views

Custom pending jobs are cleaned up?

If I manually add a job to the cron_schedule, then sometimes it will run and sometimes it will get removed from the table before running? What/where is that functionality that do that kind of cleanup ...
AP87's user avatar
  • 209
0 votes
2 answers
153 views

How to disable the cron jobs created by my module?

Anybody have crontab.xml reference of magento2. I want to temporarily disable the custom cron job. I dont want to disable my module or delete it.
Haarish Infant Raj's user avatar
0 votes
2 answers
47 views

The cron task indexer_update_all_views failed | SQLSTATE[23000]: Integrity constraint violation: 1052 Column 'entity_id' in where clause is ambiguous

Sorry for my bad English. I am using Magento 2.4.6-p4 CE and I get the following error after every order. The job indexer_update_all_views scheduled at **date** **time** failed with the following ...
EK.'s user avatar
  • 81
0 votes
1 answer
48 views

How often should I run the message consumers?

Magento 2.4.6 I am running this every minute via cronjob: php bin/magento cron:run; > /dev/null 2>&1 php bin/magento queue:consumers:start product_action_attribute.update & php bin/...
user4095519's user avatar
0 votes
0 answers
9 views

Cron Job analytics_subscribe has an error

Cron jobs seem to halt to this error in cron.log: main.ERROR: Cron Job analytics_subscribe has an error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a ...
Webninja's user avatar
  • 1,613
0 votes
0 answers
30 views

Magento 2 : Create Order programmatically, not working via cron

I try to create Order programmatically but that is not working via cron job. However I could create the order using custom controller. I'm getting below error : The PostFinance Checkout payment ...
poornima's user avatar
0 votes
1 answer
71 views

Magento 2.4.6: how to setup cron for group:index to run less frequently than every minute?

Cron tasks in Magento are executed every minute and when product import and indexing tasks are executed simultaneously database deadlock occurs. Changing settings in "System > Cron (Scheduled ...
player's user avatar
  • 43
0 votes
2 answers
186 views

There are no commands defined in the "setup:cron" namespace after upgrade to Magento 2.4.6-p3

After upgrading to magento 2.4.6-p3 in system.log and cron.log it is generating same error daily i.e - main.ERROR: There are no commands defined in the "setup:cron" namespace. Did you mean ...
Tisha Jhanwar's user avatar
0 votes
1 answer
203 views

No callbacks found for cron job analytics_subscribe

Magento 2.4.x I have this exception in var/log/cron.log: main.CRITICAL: Exception: No callbacks found for cron job analytics_subscribe in vendor/magento/module-cron/Observer/ProcessCronQueueObserver....
Daniel Ifrim's user avatar
  • 3,404
0 votes
0 answers
18 views

How can I return quantity when I run and update order status?

How come when I run cron and update order status to cancel, quantity is returned?
hau's user avatar
  • 41
1 vote
0 answers
176 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
  • 21
0 votes
1 answer
33 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
240 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
1 answer
249 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
1 answer
991 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
202 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-...
kekw's user avatar
  • 103
0 votes
1 answer
64 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
114 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
186 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
1 vote
2 answers
2k 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
136 views

magento 2 cron failed scheduled at 12 am

Please check the below code: https://i.sstatic.net/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 it ...
user3411's user avatar
  • 144
0 votes
1 answer
439 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
198 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
  • 144
1 vote
1 answer
274 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
245 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
215 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
  • 440
0 votes
2 answers
167 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 ...
user avatar
1 vote
1 answer
479 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
2 votes
1 answer
499 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,234
2 votes
1 answer
719 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
  • 125
1 vote
2 answers
301 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
  • 676
2 votes
0 answers
236 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
1 vote
1 answer
422 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
294 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,422
2 votes
1 answer
23 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
  • 219
1 vote
1 answer
3k 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
153 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
298 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
297 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
363 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
41 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
10k 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? ...
Afzal Arshad's user avatar
1 vote
0 answers
111 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,316
0 votes
1 answer
391 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
726 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

1
2 3 4 5
21