Questions tagged [magento-cron]
Denotes questions regarding Magento Cron
159
questions
0
votes
2
answers
134
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.
0
votes
2
answers
181
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 ...
0
votes
0
answers
28
views
How many cron can run together of same groups in magento 2
I want to know how many crons of the same group and different groups are run parallel in Magento 2.
As we have too many crons our cron execution is failing and missed execution.
We have already 11 to ...
0
votes
2
answers
142
views
magento creating order programmatically using Cron Jobs
I want to create an order programmatically using Cron jobs, the codes run perfectly but when creating the order i got 'Error: Type Error occurred when creating object: Magento\InventoryIndexer\Model\...
0
votes
0
answers
106
views
Does Magento support managing consumers on multi-nodes? If it supports, what is the best way to run consumers on multi-nodes?
Prerequisites
I uses OSS Magento 2.4.5-p1.
I understand Magento provides some consumers for asynchronous and bulk process and cousumers are managed and launched by magento cron as shown in ref.1.
I ...
4
votes
2
answers
560
views
Magento 2 Cron jobs are stuck in Pending status
We have use Magento:2.4.3-p1 version , my issue is new cron generating but "pending" status.
After attempting to update product attributes in bulk I have a "stuck" system message ...
0
votes
1
answer
233
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 "...
1
vote
2
answers
205
views
Magento 2.4.3 - Magento Cron for index
We have some issues and I have been told is because we have our Magento cron set to execute every 1 min. But since our installation is so big with tons of product etc we need to raise it to go less ...
0
votes
1
answer
977
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 ...
0
votes
0
answers
199
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-...
0
votes
1
answer
432
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 ...
2
votes
1
answer
177
views
Multiple cron:run 2>&1
I have a site with magento 2.4 in AWS with kubernetes and I try to execute the jobs with bin/magento cron:install. This generate in crontab a new line:
The problem is when I check with command top ...
0
votes
1
answer
364
views
How to call the Cron's execute() function from a controller Magento 2.0.8
I have a Magento Cron which works fine when I call it using the CLI. I want to call the same Cron in a Controller. Is it possible to do it? (ie) I want to run the execute() function in the Cron script ...
1
vote
1
answer
296
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 ...
1
vote
0
answers
2k
views
Queue Consumer not starting automatically (third party integration)
We are doing PIM integration (Inriver Integration) and as per its working when we trigger a bulk sync from PIM(Inriver) to Magento, PIM(Inriver) calls various Magento APIs in asynchronous way.
So, in ...
0
votes
3
answers
897
views
best way to run shell commands like "bin/magento c:f" by using cron job magento2
I want to run some shell commands like c:f , c:c etc by using cron.
0
votes
0
answers
59
views
log missed while cron run
I have created cron which is scheduled for every 5 mins.In the cron,based on some conditions I have inserted value to custom table, while insert I have logged value in custom log file.For sometimes ,...
0
votes
2
answers
271
views
Unable to get cronjob working with Magento 2.4.3-p1
So I've been having this issue for the past week now, I've tried to self-diagnose by following instructions online but I can't this to work.
I've even installed a new instance but same issues.
This is ...
0
votes
1
answer
253
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
361
views
Magento 2.4.3-p1 flush cache error consumer
i use magento 2.4.3-p1 and everything is works fine except when i flush cache i got the following:
EDIT: var/log, system.log, debug.log, cron.log everything fine!
Screenshot of cron task list:
...
0
votes
3
answers
3k
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
2
answers
2k
views
How to add custom category attribute in the layered navigation filters in Magento 2
I'm new to Magento 2 and trying to figure out the way to implement the following scenario:
We have categories with custom attribute which is multi-select. These attributes need to be category-specific....
0
votes
1
answer
83
views
How To Set up Custom Cron Job in Magento 2?
Can anyone explain the methods to doing this job done?
Thank you in advance.
0
votes
4
answers
515
views
How to trigger some function 10 minutes after order placed by user
I'm trying to implement a functionality where a user gets a communication exactly after 10 minutes after hi placed an order. How to accomplish this in magento 2?
0
votes
1
answer
3k
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
1
answer
1k
views
How Magento 2 cron jobs work?
I have a question about cron jobs in Magento. I have a Magento 2 site already installed.
By running this database query:
select job_code from cron_schedule GROUP BY job_code
I get several cron jobs ...
0
votes
3
answers
233
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
0
answers
248
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
2
answers
628
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 ...
0
votes
1
answer
273
views
How to notify admin user after cronjob finished?
I have a cronjob that imports product data. This can take up to 40 minutes.
Is there a way to notify the admin user who is logged in?
I don't want the admin users to manually edit products during the ...
0
votes
1
answer
462
views
Only `inventory_cleanup_reservations` CRON is not scheduled
The Magento2.3 instance is installed in AWS server. The CRON has setup correctly and there are many CRON's running successfully. Below is the content of cron_schedule.
But the issue is CRON with ...
0
votes
2
answers
941
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
1
answer
443
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
2
answers
2k
views
Magento\Framework\Filesystem\Driver\File doesn't work in Cron Job Magento 2
Does any one know why $this->driverFile->isExists('pub/media/') doesn't work in Cron Job ?
I've a Cron Job look like this:
<?php
namespace Namespace\Module\Cron;
use Namespace\Module\Helper\...
0
votes
2
answers
669
views
Advanced Reporting Cron Failing
I'm getting an error in my Magento 2.3.6 when I run n98-magerun2 sys:cron:run analytics_collect_data and overnight in the cron table.
Run Magento\Analytics\Cron\CollectData::execute
Cron-job "...
0
votes
0
answers
177
views
Cron job is running but not updating Inventory
I am using mass product import and export Extension from Wyomind
https://www.wyomind.com/magento2/mass-product-update-import-magento.html
I have scheduled tasks to run csv profile after every 30 ...
1
vote
1
answer
480
views
Magento2.2.2 Order email confirmation after switched back on sends old order confirmation email
Order email Communications has been switched Off for long period of time as the emails was being sent outside of magento.
However I notice while testing that if switched back On Old order emails ...
1
vote
1
answer
561
views
how to export magento Cron job list?
Is there anyway to export the Magento cron job in a list? If possible, including the schedule will be prefect. thanks
2
votes
1
answer
716
views
backend_clean_cache cron never completes
If I run
SELECT job_code,scheduled_at,executed_at,finished_at FROM cron_schedule where executed_at is not null and finished_at is null;
I can see backend_clean_cache never completes
Has anyone had ...
0
votes
1
answer
186
views
Is there any way to kick off a very specific cron process in Magento 2 using command line?
We're working on troubleshooting a bug where product back in stock alerts aren't sent on our production or staging environment, but they are in dev(after a custom patch was applied to all three). ...
0
votes
1
answer
2k
views
How to run cron job at a particular time in Magento 2?
I want to create a cron job which update product price which are disabled and the cron run at a specific time 1 time in a day.
I have created a custom basic module from taking reference from https://...
1
vote
0
answers
143
views
Import add and update products with their attributes in a CSV file and cron job Magento2
I am using Magento 2.3.3 and wants to import products using cron and csv. I have google Sheet which contains all products data and sheet's data changes continuously. So I have to run a cron every day ...
2
votes
3
answers
2k
views
Import new and update products and their attributes with a CSV file and cron job Magento2
I am using Magento 2.3.3 and wants to import products using cron and csv. I have google Sheet which contains all products data and sheet's data changes continuously. So I have to run a cron every day ...
1
vote
0
answers
57
views
How to make magento 1.9 to use postfix to send email to client?
I have Magento store deployed on an ec2 instance which was moved from shared hosting to the standalone server on AWS.
On the server I have configured Postfix as the MTA agent to allow Magento to send ...
2
votes
0
answers
242
views
Cron 'catalogrule_apply_all' locks cron 'indexer_all_invalid' and catalogsearch_fulltext keeps processing Magento 2.3.5
Took me quite some time to debug this. Every night (default) at 0:00 catalogrule_apply_all is run by cron, and resets all indexes for all store.
As a consequence catalogserach_fulltext is launched (...
1
vote
0
answers
126
views
cron_schedule does not update to "running" causing same job to restart repeatedly
Magento (1.9.2.1) does not appear to be setting any of the cron jobs as "running". This is causing issues where a long-running process is being restarted repeatedly every five minutes - the ...
0
votes
1
answer
420
views
Magento 2 Cron Run throws PHP Fatal error: Uncaught Error: Cannot instantiate interface Magento\Framework\Filesystem\DriverInterface
So when I run the php bin/magento cron:run I get error as PHP Fatal error: Uncaught Error: Cannot instantiate interface Magento\Framework\Filesystem\DriverInterface
This error gets disappear after ...
0
votes
0
answers
58
views
Magento2 cron function not running:
I have created a custom module for cron but it's not running at all:
crontab.xml
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
votes
0
answers
77
views
Magento 2.3.2 custom Cron status is always missed or pending
Magento 2.3.2 custom Cron job won't run. Status is always missed or pending and next time it is not working
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/...
0
votes
1
answer
160
views
Magento 2.3.4 [SOLVED] can't delete crontab created in development mode
When we created the store in development mode, a conjob was created.
On moving to the definitive domain, we noticed errors in the cron tasks and did an install: cron again
But now I have two cronjobs ...