Questions tagged [cronjobs]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
21 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 ...
0
votes
1answer
38 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?
1
vote
1answer
28 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){ ...
0
votes
1answer
21 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 ...
2
votes
1answer
37 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=...
0
votes
1answer
24 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
76 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" to "error" ...
0
votes
1answer
24 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 ...
1
vote
2answers
38 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->...
0
votes
0answers
19 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 ...
4
votes
2answers
324 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 ...
1
vote
1answer
72 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\...
0
votes
0answers
24 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 ...
1
vote
0answers
106 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 ...
0
votes
0answers
82 views

Magento 2 No such entity error in Cron job for sending password reset Email

I have tried below code to send all customer reset password link <?php namespace Vendor\Module\Cron; use Magento\Customer\Api\AccountManagementInterface; use Magento\Customer\Model\...
0
votes
2answers
409 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
1answer
23 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
1
vote
0answers
48 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 ...
2
votes
0answers
29 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
233 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 ...
0
votes
1answer
79 views

Cronjobs stay on pending

I put my cronjobs to every minute, but i think there is still someting wrong. I still have some cronjobs who stay's on pending... My pending cronjobs: I migrate my Magento from 1.7 to 2.3
2
votes
2answers
4k 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
0
votes
1answer
199 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/...
0
votes
1answer
109 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 ...
1
vote
3answers
649 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 ...
1
vote
0answers
35 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, ...
1
vote
1answer
117 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 ...
7
votes
1answer
150 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 ...