Skip to main content

Questions tagged [cron]

Denotes a question related to the cron system

Filter by
Sorted by
Tagged with
0 votes
1 answer
24 views

Error su un 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
22 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
  • 197
0 votes
2 answers
37 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
36 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
30 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
7 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,593
0 votes
0 answers
26 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
0 answers
46 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
  • 33
0 votes
2 answers
111 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
94 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
159 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
156 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
  • 197
0 votes
1 answer
193 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
36 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
791 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
42 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
149 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
54 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
104 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
137 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
1k 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
122 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
  • 134
0 votes
1 answer
324 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
173 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
  • 134
1 vote
1 answer
251 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
222 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
194 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
154 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
450 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
360 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
639 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
  • 91
1 vote
2 answers
277 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
  • 658
2 votes
0 answers
210 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
394 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
264 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,420
2 votes
1 answer
22 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
144 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
257 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
272 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
352 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
39 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
9k 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
109 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,306
0 votes
1 answer
371 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
712 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
190 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,965

1
2 3 4 5
21