Questions tagged [cronjobs]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
7
votes
1answer
288 views

Magento 2 - Cache warmer for multiple server

I have integrated a cache warmer module. Using cronjob it runs and creates cache for all the pages, and it's working properly. I have multiple servers (Let's say 2 servers), until now there is no ...
5
votes
2answers
831 views

Magento 2.2.8 - sitemap.xml contains “pub” DIR in the URL, It should be without “pub” directory in the URL

Preconditions app/etc/env.php 'directories' => [ 'document_root_is_pub' => true ], 'MAGE_MODE' => 'production', document_root_is_pub is true MAGE_MODE is have production value ...
2
votes
2answers
10k views

how to stop cron job runing in magento 2

in my site runing cron job (but it take RAM and CPU Usage ) So i want to stop cron job how to stop cron job runing in magento 2
2
votes
1answer
49 views

How i Can Schedule A cron Job on the Basis of Admin Configurations Values

I created a cron job as per standard method Vendor\Module\etc\crontab.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation=...
2
votes
3answers
2k views

M2 Importer: Value for 'visibility' attribute contains incorrect value

If the importer runs with cronjob I get always the same errors on all lines: Value for 'visibility' attribute contains incorrect value, see acceptable values on settings specified for Admin in ...
2
votes
0answers
40 views

How to set the CRON for every 4 hours?

I have created a custom cron group and below is the code. <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation=...
2
votes
0answers
42 views

Magento 2 : Order confirmation email cron language picks up default language

I have multi language site. Created a cron job to send order confirmation email. I have created an email template for specific language. The problem is, shipping and billing country is displaying in ...
1
vote
3answers
629 views

Magento 2 - Test cronjob from browser

I have created a cronjob in: app/code/Vendor/Module/Cron/MyCron.php It's in development phase, so every time I need to check the data or debug anything I am creating a log file and rescheduling it ...
1
vote
1answer
211 views

Magento 2.3 How to automate custom cron job from custom module?

I am working on Cron from custom module to send email from custom cron job, I created it as below but the cron job is nor working on the server. <?php namespace Name\Module\Cron; use Magento\...
1
vote
2answers
577 views

Magento 2: How override native crontab.xml

I would like to override some cron jobs of native crontab.xml for example, vendor/amzn/amazon-pay-and-login-magento-2-module/src/Payment/etc/crontab.xml <config xmlns:xsi="http://www.w3.org/...
1
vote
2answers
91 views

Magento2: existing quote doesn't load through a cron job

I want to get an existing quote through a cron job, but it returns null. Want get through this $this->quoteFactory->create()->loadByCustomer($custoemrId) or $this->quoteFactory->...
1
vote
1answer
48 views

How to get bundle product price by product id ? Magento2

In the code below, I get the product price by identifier, but only the first product price is returned for different product id. Can help me ? public function getBundlePriceByid($product_id){ ...
1
vote
1answer
221 views

Magento 2 Cron job can't get finalPrice for configurable product

I have the following in my cron folder and also I have the following the Controller folder which is exact same code and it get the price when I load in the url but it refuse to get price in cron ...
1
vote
0answers
31 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
0answers
45 views

magento 1.9,error when start cron.sh “no php in (/usr/bin:/bin)”

I'm trying to run cron.sh file, to earn my crons, but i have problem. I have this errors: which: no php in (/usr/bin:/bin) /var/www/vhosts/mysite.com/mysite.com/cron.php: line 1: ?php: No such file ...
1
vote
0answers
208 views

Magento 2.3.0: High MYSQL CPU Usage @ magento Cron Jobs

High MYSQL CPU Usage @ Cron Jobs Hello, I have a problem at a server which is utilizing so much CPU so that the website is really slow. I checked the server, logs, magento logs, and it seems its ...
1
vote
0answers
88 views

Magento 2 cron job showing success message but code not executed

I have created a magento 2 module in which I have created a cron job and set cron for every 5 mins. But in cron_schedule table it is showing success message but cron code is not executed. If I hit ...
1
vote
0answers
38 views

Set different cron on magento 1

The problem is: I have a custom extension that has a file PHP setting to cron. When it's running other cron like m2epro cron doesn't start. Is there a way to fix this problem? If it can help you, ...
0
votes
1answer
194 views

Magento 2 - How to get Base URL in cronjob

In other file I use this code to get base URL $this->storeManager->getStore()->getBaseUrl() where $this->storeManager is a instance of \Magento\Store\Model\StoreManagerInterface My ...
0
votes
1answer
33 views

Why do magento2 cronjobs need to be ran every minute?

As the title says, I'm really curious if I could set the cronjobs to execute a bit more rare. For example every 10 minutes or so. Is there any specific requirement on why do the magento 2 cronjobs ...
0
votes
1answer
28 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://...
0
votes
1answer
15 views

Schedule cron job every day

how start cronjob every day? I'm not too strong in schedule <crontab> <jobs> <ebayautopurchase_deleteproducts> <schedule><cron_expr> * ...
0
votes
1answer
71 views

Magento 2 : How to run 2 cron jobs at the same time?

In my crontab.xml I have 2 different cron jobs which are invoking 2 different methods scheduled to run on the minute. When I do the command "bin/magento cron:run" only one job is running. Below is my ...
0
votes
1answer
246 views

Magento 2 cron error 'Process went away'

I created custom cron job which is working fine on localhost and was working initially on the server as well but now on the server, it is getting scheduled but status changes from "pending" ...
0
votes
2answers
1k views

Magento2 Cron job for sending mail not working

I am trying to send an email to a address via cron job but there is no response I tried it using controller it sends the mail correctly. Vendor\Module\Cron\Mail.php <?php namespace Vendor\...
0
votes
0answers
16 views

URI is not valid and cannot be converted into a string

I'm struggling with an error that is thrown in the debug.log. The problem is that multiple indexers are not updated allthough the cronjobs are running. Re-indexing by CLI is working properly on all ...
0
votes
0answers
33 views

catalog_product index does not exist yet. Make sure everything is reindexed

In our production site using Magento 2.3.4 and Smile-SA elasticsuite extension with elasticsuite 6.x. After manual reindex site working well. But some time shows an error. main.CRITICAL: ...
0
votes
0answers
22 views

Magento 2.3.5-p2 cloud custom cron job not working auto

I have created one cron group and cron but module cron not seems to be working(not working automatically ). When I use below command cron run working . php bin/magento cron:run --group="...
0
votes
2answers
49 views

Unable to send emails. Could not acquire lock for cron job: sales_send_order_invoice_emails

Unable to send any kind emails (order, invoice, tracking). I get confirmation that it was sent, but nothing received. Same with "Contact us" from frontend. cron.log: main.WARNING: Could not ...
0
votes
1answer
31 views

Magento 2.3.4 How to change the order status from COMPLETE to CLOSED after 5 days with a cronjob?

Since Yotpo plug-in triggers Automatic Review Email upon Magento changing order status to COMPLETE, I need to further change the status from Complete to Closed after 5 days so that the Automatic ...
0
votes
0answers
17 views

Cron job is only working when I run the cron command manually

I have created a cron job and its only working when I run the below command: php bin/magento cron:run But the cron should run automatically. What Could be the issue and why the cron is not running ...
0
votes
1answer
57 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 ...
0
votes
0answers
48 views

Magento 2 catalog_product_alert schedule entries not being created

All store configuration is properly setup, the cron is running, everything else is working, but there are no catalog_product_alert schedule entries being generated or back in stock alerts sent. I ...
0
votes
0answers
5 views

Get shipping from order

I'm doing a cronjob and I need to get the shipping value, this one SELECT "shipment_label_id" FROM "shipment_label" WHERE "order_id" = 66591 The shipping is saved like that in just that table atm ...
0
votes
0answers
8 views

Cron job Creation

I've created a module with a cron, the module is registered with no problem and the crontab.xml looks like this: <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
0
votes
1answer
35 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/...
0
votes
0answers
11 views

Send Customer Data to the external URL via Crons in Magento2

How to send Customer data to the external URL by running crons one by one (don't send already send data)? Thanks in Advance
0
votes
0answers
14 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 ...
0
votes
0answers
18 views

There is a limitation to use a custom repository class when it is used in a cron job?

Using Alan Storm's pestle libary, created a full crud model, which it created its interfaces, repository, model, resource model and collection, nice. Defined a new cron job in the crontab.xml, ...
0
votes
1answer
43 views

Cron Error Magento 2: Please set a website ID

I have custom cron, which initially had an error: Please set a website ID. I got rid of this issue by doing below: $this->emulation->startEnvironmentEmulation($store_id, \Magento\Framework\...
0
votes
2answers
31 views

How to run magento 2.3 scripts through cron

I have made one script (addproducts.php) in my Magento root folder for adding products programmatically. For now, I am hitting this script in URL as localhost/addproducts.php. What should I do to ...
0
votes
0answers
10 views

Schedule a cron job at the end of another cron jo

I'd like a cron job at the end of another cron job: At the end of the cron job: task_pippo the cron job: task_paperino must be immediately shielded. Can something be done?
0
votes
0answers
86 views

Magento 2 programmatically update products by processing feed (cron job)

I have looked everywhere high and low, and tried every "solution" I could find, but could not figure out what's wrong with my code. We have an XML feed which gets imported to a local folder, and then ...
0
votes
0answers
34 views

Stop Magento Indexer while product Import running

My magento version is 2.3.2 We are using Firegento/FastSimpleImport 2 extension for product Import. It is working fine.We have around 9,000 Products and 8 country stores. Our process is we need to ...
0
votes
0answers
12 views

Magento - Cron scheduled don't created new jobs

I run command sh /var/www/vhosts/mysite.com/mysite.com/cron.sh on my server in scheduled tasks for start cron jobs working, and everything worked fine, but as early as 3 days no tasks were added and I ...
0
votes
1answer
43 views

Magento 2: How to disable cron jobs?

I want to disable some Cron jobs by group or specific cron tab in my staging environment because of some reason. Please someone suggest me a solution, how to do that?
0
votes
1answer
27 views

Magento2: Reset specific indexer by cronjob

Sometimes the indexer catalog_product_category doesn't automatically run when assigning new products to a category, so products aren't displayed at the shop. I've to manually reset this indexer in the ...
0
votes
0answers
29 views

M2 | Cron is not auto executing on server

I created custom cron job, all jobs are running fine on local server but on staging jobs are scheduled but always stay pending or missed. I can execute cron from backend using third party extension ...
0
votes
0answers
51 views

Cron job image import issue - Magento 2.3

In Magento 2.3, I am importing data from the .xml file. The product name, SKU and product description i can import via cron job but I cannot import the product image. Can you help me? Thanks in ...
0
votes
1answer
25 views

MAgento2.3.0 how to Update automatic indexing - cron job to set up to re-index automaticaly/periodically [duplicate]

I am using MAgento2.3.0 website i need to Update automatic indexing - cron job to set up to re-index automaticaly/periodically if any one idea how to setup please reply me