Questions tagged [magento-cron]

Denotes questions regarding Magento Cron

Filter by
Sorted by
Tagged with
0 votes
1 answer
16 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
2 answers
41 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 ...
Jan-petter Havna's user avatar
0 votes
1 answer
121 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
59 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
76 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
1 vote
1 answer
122 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 ...
Jose Luis Moreno López's user avatar
0 votes
1 answer
198 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 ...
Lennox Sherwin's user avatar
1 vote
1 answer
197 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
0 answers
1k 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 ...
Narendra Vyas's user avatar
0 votes
3 answers
581 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.
nihal malik's user avatar
0 votes
0 answers
46 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 ,...
Jothi Subramanian's user avatar
0 votes
2 answers
220 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 ...
Mayur's user avatar
  • 33
0 votes
1 answer
185 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
321 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: ...
Raul Baričević's user avatar
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
  • 672
0 votes
2 answers
1k 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....
stefun's user avatar
  • 145
0 votes
1 answer
55 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.
Kuldeep Sharma's user avatar
0 votes
4 answers
356 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?
Suraj's user avatar
  • 1
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 ...
gnicko's user avatar
  • 380
0 votes
1 answer
853 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 ...
jstuardo's user avatar
  • 609
0 votes
3 answers
221 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 $...
Andreja Vidovic's user avatar
0 votes
0 answers
188 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 ...
Black's user avatar
  • 3,100
1 vote
2 answers
444 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 ...
Jonas de Herdt's user avatar
0 votes
1 answer
240 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 ...
Max's user avatar
  • 17
0 votes
1 answer
356 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 ...
Anto S's user avatar
  • 1,407
0 votes
2 answers
685 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 ...
Kalvin Klien's user avatar
0 votes
1 answer
325 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'...
Stark's user avatar
  • 3
0 votes
1 answer
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\...
fudu's user avatar
  • 1,258
0 votes
2 answers
531 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 "...
user68878's user avatar
  • 330
0 votes
0 answers
165 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 ...
Anonymous Record's user avatar
1 vote
1 answer
362 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 ...
Juliano Vargas's user avatar
1 vote
1 answer
450 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
Paul Fan's user avatar
  • 614
2 votes
1 answer
453 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 ...
Goose84's user avatar
  • 2,539
0 votes
1 answer
130 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). ...
Front_End_Dev's user avatar
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://...
Prits's user avatar
  • 626
1 vote
0 answers
128 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 ...
saurabh garg's user avatar
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 ...
vartika sharma's user avatar
1 vote
0 answers
53 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 ...
Akshat Tulsani's user avatar
2 votes
0 answers
223 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 (...
Matthew's user avatar
  • 46
1 vote
0 answers
114 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 ...
Richard Parnaby-King's user avatar
0 votes
1 answer
396 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 ...
Akhil Gupta's user avatar
  • 1,946
0 votes
0 answers
50 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:...
Arunendra's user avatar
  • 7,366
0 votes
0 answers
70 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/...
user12992122's user avatar
0 votes
1 answer
148 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 ...
Juanjo's user avatar
  • 21
0 votes
1 answer
140 views

Magento2 Cron not running

My cron file code as follows.crontab.xml <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Cron:etc/crontab.xsd"> <...
Dinesh's user avatar
  • 532
0 votes
0 answers
269 views

Magento 2.3.4 cron job reindex error

i've a problem with Magento Cron. I activate magento cron by terminal command as wrote in Magento 2 User Guide. But when i open log file i found this error [2020-04-22 12:53:05] main.ERROR: Cron Job ...
Antonello Rossi's user avatar
0 votes
1 answer
166 views

Magento2 /bin/sh: /home/appleserver2/public_html/magento2/var/log/update.cron.log: No such file or directory

i have delete magento2 installation by directly deleting the directory and database. however i am getting email in every second and the mail content is as below /bin/sh: /home/appleserver2/...
ujjawal's user avatar
0 votes
0 answers
31 views

Is there any way to Schedule a Cron Programatically

I have created a CRON from My Customer this extension has a CRON. now the client is asking me to do something that CRON should schedule automatically on Magento Extension Installation He doesn't want ...
Waqar Ali's user avatar
  • 2,254
0 votes
2 answers
174 views

Persistent permission issue on my folders

I am having some issues with my magento 2.3.1 stored on a ubuntu 16.04 server . each time i run php bin/magento setup:upgrade, the VAR and GENERATED folder always loses its permission until i run ...
LoudHouse Family's user avatar
0 votes
1 answer
337 views

Magento 2 : Set Dynamic User Define Time for Run cronjob?

We are developing one Extension in which we provide the facility to the user to set his custom time for run corn job. for this functionality, we provide fields in-store configuration like: Custom ...
Bhavesh Prajapati's user avatar