The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [cron]

Denotes a question related to the cron system

Filter by
Sorted by
Tagged with
0
votes
1answer
35 views

Magento 2 I want to run below command line for every minutes

I'm using magento2.3 Here when create bulk action from product grid schedule not started and updated. I got solution for the above issue when I run this command above issue fixed. So I want to run ...
0
votes
0answers
18 views

Magento 2 reindex cronjob frequency

Magento 2.3.0 It's more like an open question than a problem. By default reindex by schedule is fired every minute. Why is that so often? By your experience, can default cronjob be set less often ...
0
votes
0answers
21 views

Magento 2 Could not acquire lock for cron group: default

We just migrated our Magento 1 site to Magento 2. At some during the process, the default cron group stopped running. This was after data migration and possibly right after the first test orders were ...
1
vote
1answer
21 views

Magento 2 change product description using API on every 5 seconds

I am working on Magento2, and I've to change my product description on every five minutes using the third-party API. Then I've 1laksh product in my Magento, so which approach is better to change the ...
1
vote
0answers
22 views

Why my Magento just send order emails using the Send Email button?

I have my cron configured, but my order emails are sent just when I click on the Send Email button. How could I have my emails send via schedule?
1
vote
0answers
14 views

How to schedule a transactional email locally?

I want to test any transactional email by a schedule in my local environment. How could I do that in my local?
0
votes
0answers
8 views

Magento `cron_schedule` corrupted

My magento cronjob is seamingly making troubles for me. I never noticed that before because as far as i can see no errors are reported. I do not know about any other job sheduled but i know for a ...
0
votes
0answers
21 views

getLocaleCode() by customer instead of store

I am writing a module to send alert email to customer when a product is available. I have different email template with name like "alertmail EN", "alertmail FR"... I can't do $this->_store->...
0
votes
0answers
21 views

Magento 2: How to send newsletter on defined time?

I create one newsletter template and try to send customer , i also run the cron but customer not get newsletter, please help me how can i do that? In screenshot you can see status is Not sent., ...
1
vote
0answers
30 views

Magento 2 log file is not creating to test Cron

my code is Vender/Module/etc/crontab.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:...
0
votes
1answer
25 views

What cronjob takes care of running a Scheduled Import in Magento2?

I don't understand how scheduled import processes are starting. I don't find a matching cronjob in Magento_ScheduledImportExport, only a cleaning job: <job name="...
0
votes
1answer
37 views

cron:remove and cron:install command is not working. Magento 2

I'm trying to remove cron but it is not working and as well on install as well it is not working but in case of cron:run it works while I run the above two commands it give me an error C:\xamppp\...
0
votes
0answers
23 views

Magento 2 cron error 'Process went away'

I shifted my module having custom cron job from local server to staging where it is showing this error It is working fine on local server whereas on staging rest of the cron jobs are also working. ...
0
votes
1answer
31 views

Magento2 - Cron readiness check failure

Cron is not working properly showing error in /var/www/domain.com/var/log/update.log [2019-09-25 07:07:02] update-cron.ERROR: Cron readiness check failure! Found non-writable paths: /var/www/...
0
votes
0answers
21 views

Magento 1.9 Customer Login Stopped Working

Server: Dedicated, Apache 2.4, Nginx, Redis, CPanel/WHM, Site using FPC extension Mirasvit We have an Magento 1.9 site with the above setup - since last week all of sudden customers are no longer to ...
0
votes
0answers
20 views

Cron issue when installing components

I am having a problem when i try to install component through web setup wizard. My php version is 7.1.29 I am using Magento 2.3.2 In Step 1: Readiness Check i get the following result Check Updater ...
1
vote
2answers
27 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
0answers
31 views

Cron job doesn't work Magento2

I created a module and want to use it through cron, and in the end I call the cron: run command, here are my files, what is wrong here? namespace AutoAddtocart\BundleAddtocart\Cron; class ...
2
votes
1answer
33 views

M2 | Why we need to execute cron:run twice executing first time?

I created a custom cron job and tested on local server, where it needs to run bin/magento cron:run two times simultaneously and then that custom job is created and scheduled. why is it like that ...
0
votes
0answers
16 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
3answers
47 views

Magento Setting Up Cron “Error during saving of crontab: sh: line 6: crontab: command not found”

I don't have much knowledge in Magento, but I'm spending a lot of time trying to set up crontab. I tried to follow the steps available on the Magento website, but early on when I try to run the ...
0
votes
0answers
14 views

Magento 2.3 Order Invoice Email Not Being Sent via Cron Job

Magento 2.3.1 cron job code: sales_send_order_invoice_emails status: successful Anyone cares to share a way to solve this? If you know anything about the cron sending out email after catching the ...
0
votes
0answers
28 views

Magento Command Run Using .bat file

How to Use Magento 2 CMD Command using the .bat file I am Wrtting this Commands but still it is not working D:\xampp7.2\php\php.exe D:\xampp7.2\htdocs\m232\bin\magento cron:run D:\xampp7.2\php\php....
0
votes
1answer
23 views

Auto Cron is Not Working When I want to add Data into DataBase

Here Data Was Successfully Addded Into Database When i Run php bin\magento cron:run Command But AutoMatically Data Wasn't Added. vendor\module_name\Cron\Test.php use Psr\Log\LoggerInterface; class ...
2
votes
1answer
37 views

how magento 2 generats and archives log files in file system in server?

I have been searching in internet for this question "how Magento 2 generate log files and make archive files when the day passes is there an cron or configuration in admin area so I can change it for ...
0
votes
0answers
51 views

Magento 2 : Export CSV is not working

I have created the below code for the export of the CSV in my cron class file. But I unable to get it export file and when I checked in database it was showed me to status running for my job_code ...
1
vote
1answer
79 views

NOT_FOUND - no queue 'async.operations.all' in vhost '/' : RabitMQ : Magento 2.3 EE

I am integrating RabbitMQ with magento 2.3. EE , When I try to run cron It is giving me below error NOT_FOUND - no queue 'async.operations.all' in vhost '/' Can anyone help me on this.
0
votes
1answer
13 views

Difference between \Magento\Framework\App\Shell vs \Magento\Framework\Shell

I was trying to execute shell commands from the Magento application and came across the following class class in the framework \Magento\Framework\App\Shell and \Magento\Framework\Shell Not sure ...
1
vote
2answers
102 views

“indexer_update_all_views” cron job runs seemingly forever

We are currently having the problem that the indexer_update_all_views cron job seemingly runs forever - even though there aren't that many entries in the backlog of the indexer. Last time we let the ...
1
vote
1answer
54 views

Magento 2 - Bulk update stock programmatically - Using database query [duplicate]

I have 10 products; 1, 2, 3, 4, 5, 6, 7, 8, 9, 10. I want to be able to bulk change 1, 3, 4, 5 and 9 to 0 quantity and out of stock and 2, 6, 7, 8 and 10 to 100 quantity and in stock. How can I do ...
2
votes
2answers
183 views

Magento 2.3.2 CE and Cron jobs, flock and RabbitMQ

Last few days I was chasing an interesting bug in production system running Magento 2.3.2 CE Where as per community recommendation I run cron jobs like this flock --timeout=0 /run/lock/...
3
votes
2answers
171 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 ...
3
votes
0answers
55 views

Create Magento 2 cron job task programmatically

To sync data between 2 portal, we need some action manually trigger, on click of button need to schedule a cron via programmatically. I have found solution but it is for Magento 1. For Magento 2 what ...
0
votes
0answers
34 views

Cron job not working for magnto 2

My crons are not working on my magento2.3 site. What can be the issue? I tried installing a new cron also, still, the same issue exists. I want to enable the cron for index management. The indexing is ...
1
vote
1answer
43 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
1answer
53 views

Trigger a cron job on custom form submit in magento 2?

Can I trigger a cron job at the time of form submission? Actually, I need to download a product pdf when the form gets submitted. But my pdf file has a large amount of data. So the site gets slow ...
0
votes
1answer
58 views

Magento 2.1.7 - Problem on Readiness Check on “Check Cron Scripts”

I have a Client with Magento 2.1.7, I need to success the Readiness Check so I can install extensions or upgrade Magento version... All the checks are ok! It says to: "Your PHP version is correct (...
1
vote
1answer
76 views

how to create a cron to execute a script every 1 min magento 2

I have created a script that deletes duplicated option for custom attribute because this attribute product will generate duplicated value after every save or edit of the product so how to proceed to ...
6
votes
2answers
1k views

Magento 2 Bulk Actions not Starting

After trying to update attributes for 4 products in Magento 2.3.2 the Bulk Actions log shows that the update tasks have not started. My Magento cron jobs appear to be running ok, why are bulk action ...
0
votes
1answer
15 views

How to configure the indexer to run over the night?

I would like to run my indexer to run over the night since I'm already using the reindex by schedule, how could I do that?
0
votes
1answer
42 views

Run cron jobs programmatically

In the Magento 2 CLI, the command to run cron jobs is cron:run --group="[cron group]" However, I was not able to find how this translates into actual PHP code, i.e. where cron:run is mapped to. Is ...
2
votes
1answer
78 views

Magento 2 Error while running Cronjob : Integrity constraint violation

I have 2 cronjobs that serve data from suppliers to a Magento store (Magento 2.2 (Community)). This has been running for a few weeks without any issue, but this morning I got a whole list of error ...
2
votes
0answers
31 views

ELB + ECS + EFS + RDS amazon,cron job with magento 1.9

We are migrating our Magento 1.9 to AWS. We have already implemented an RDS MySQL database, an EFS for static and PHP files. Alsa with we has a load balancer connected with for the moment 2 servers ...
0
votes
0answers
24 views

Magento2: How can I make custom import / export product functionality?

I want to make custom import / export functionality? 1) Schedule or Cron wise Import Export. 2) Upload product from Google Sheet. Any one can do help in this?
0
votes
3answers
477 views

cache_dir “/var/www/html/Magento2/var/cache/” is not writable

I'm running a fresh Magento2.3 install on ubuntu 18.04. I managed to edit sample data yesterday, but today I had a go at adding a new product. After saving - I got the error : One or more ...
1
vote
1answer
21 views

Magento 2 Cron Script Execute From CLI

How can I execute my cron class in command line especially for testing. normally one could php -f myfile.php OR Calling a method's class: php -r 'include "/path/to/file.php"; ClassName::...
0
votes
0answers
52 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\...
4
votes
0answers
34 views

Magento 2 Send Order Emails Without Cron

Due to some issue order emails are not sending with cron and always remain with pending status. So I have to send it without cron. I have changed it to Send Asynchronously from Admin configuration. ...
0
votes
0answers
94 views

“There are no commands defined in the cron namespace” even though I don't have any crons running

I have the Magento_Cron module disabled, so as far as I know, no cron jobs should be running in my environment. Every minute or so, the text... There are no commands defined in the "cron" namespace....
1
vote
1answer
23 views

Magento 1.9 cron scheduler change timezone

i'm a magento newbie. I wrote a cron job code in my custom module's observer file and ran cron job from terminal. Scheduled jobs are entered into cron_schedule table. But the scheduled time is in UTC. ...