Questions tagged [magento-cron]

Denotes questions regarding Magento Cron

Filter by
Sorted by
Tagged with
0 votes
0 answers
19 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 ...
user avatar
0 votes
3 answers
28 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.
user avatar
0 votes
0 answers
9 views

Magento2.4.2. Magento Cron frequency

Every minute (default recommendation in Magento docs) Seems quite a strange decision. Our server is experiencing freezes on front and back that can last for about one full minute. My main suspect is ...
user avatar
0 votes
0 answers
9 views

RAM taking too much space when there is more call on this class - /FrontController/Magento\Framework\App\FrontController\Interceptor

I'm using Magento2.4.3-p1. We are facing RAM too hight alert issue becuase of the following class requested more time per second. /FrontController/Magento\Framework\App\FrontController\Interceptor /...
user avatar
0 votes
0 answers
18 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 ,...
user avatar
0 votes
2 answers
82 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 ...
user avatar
  • 33
0 votes
1 answer
35 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 ...
user avatar
  • 35
0 votes
3 answers
59 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: ...
user avatar
0 votes
3 answers
399 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 ...
user avatar
  • 600
0 votes
0 answers
27 views

How to make a configurable cron job that can be set from Magento 2 admin?

I want to make a configurable cron job that I can set from the admin panel but execute function that I define in cron does not run after a particular interval.
user avatar
0 votes
2 answers
244 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....
user avatar
  • 145
0 votes
1 answer
27 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.
user avatar
0 votes
4 answers
56 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?
user avatar
  • 1
0 votes
1 answer
418 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 ...
user avatar
  • 370
0 votes
1 answer
151 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 ...
user avatar
  • 589
0 votes
3 answers
101 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 $...
user avatar
0 votes
0 answers
69 views

Clear cron status message not in database or log files

I'm running Magento Enterprise 2.4.1 and I'm seeing a message on admin screens for more than a month that says "Update attributes for 3 selected products"; 1 item(s) have been scheduled for ...
user avatar
  • 370
0 votes
0 answers
58 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 ...
user avatar
  • 2,380
1 vote
2 answers
162 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 ...
user avatar
0 votes
1 answer
75 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 ...
user avatar
  • 17
0 votes
1 answer
114 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 ...
user avatar
  • 1,397
0 votes
2 answers
284 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 ...
user avatar
0 votes
1 answer
159 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'...
user avatar
  • 3
0 votes
1 answer
549 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\...
user avatar
  • 1,168
0 votes
1 answer
243 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 "...
user avatar
  • 320
0 votes
0 answers
86 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 ...
user avatar
1 vote
1 answer
176 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 ...
user avatar
1 vote
1 answer
187 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
user avatar
  • 508
2 votes
1 answer
265 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 ...
user avatar
  • 2,429
0 votes
1 answer
49 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). ...
user avatar
0 votes
1 answer
960 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://...
user avatar
  • 526
1 vote
0 answers
77 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 ...
user avatar
2 votes
3 answers
734 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 ...
user avatar
1 vote
0 answers
31 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 ...
user avatar
2 votes
0 answers
159 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 (...
user avatar
  • 36
1 vote
0 answers
28 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 ...
user avatar
0 votes
1 answer
259 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 ...
user avatar
  • 1,946
0 votes
0 answers
29 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:...
user avatar
  • 7,346
0 votes
0 answers
45 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/...
user avatar
  • 121
0 votes
1 answer
134 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 ...
user avatar
  • 21
0 votes
1 answer
76 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"> <...
user avatar
  • 482
0 votes
0 answers
104 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 ...
user avatar
0 votes
1 answer
115 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/...
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 ...
user avatar
  • 2,029
0 votes
2 answers
80 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 ...
user avatar
0 votes
1 answer
191 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 ...
user avatar
1 vote
1 answer
189 views

Magento2 - unable to set CRON timezone

I am having timezone = 'Asia/Jakarta' everywhere in Magento admin Database checked in phpinfo Server But still in the CRON logs I am getting UTC time only, I need this to be in 'Asia/Jakarta' only. ...
user avatar
0 votes
1 answer
17 views

Cron tab and schedule: is it needed for layout compile/custom modules?

My current store's staging instance does not have crontab set up as far as I can tell. The cron_schedule table is empty. Is this needed for custom modules/themes/etc to work properly? What is the ...
user avatar
0 votes
0 answers
60 views

PHP Script in Magento 2 Custom Module Works in Browser but Not Working through Cron

We have a custom module that executes a php script. When running the script through an observer event, the script runs without a problem. When running the script through Cron, the script runs but does ...
user avatar
  • 51
0 votes
0 answers
153 views

Magento2 - Disabled modules causing errors in cron schedule

I have disabled the modules for all the forced third party modules - temando, yotpo etc. But they still get added to the cron schedules and cause errors - even though the administration no longer ...
user avatar
  • 1,549