Questions tagged [cron]

Denotes a question related to the cron system

Filter by
Sorted by
Tagged with
0 votes
0 answers
11 views

Magento 2 Payment Gateway Method Approach

Overview: I'm creating my own payment method, this method redirects to an external page where customer needs to place credit card details. This page has SuccessURL (on Success payment action), BackURL ...
user avatar
0 votes
0 answers
3 views

Product Custom option in date value set in cron running date

In front-end, product in custom option add for date, Now i want to run cron on this date which set in custom value, on this date cron run and email sent.
user avatar
0 votes
3 answers
27 views

Magento2: How to check if cron job is working or not? [closed]

How can I check if my cron job is created or not? I have created a module that is creating shipment of orders with status processing, my question is how can I check if the cron job is working or not? ...
user avatar
0 votes
0 answers
9 views

Run cron crawler.sh litespeed cache

Documentation: https://docs.litespeedtech.com/lscache/litemage/crawler/ Path to: M2-crawler.sh in server /home/user/M2-crawler.sh Via SSH I run crawler in this way: cd /home/user bash M2-crawler.sh ...
user avatar
  • 2,074
1 vote
0 answers
50 views

Magento 2 Mailchimp Abadoned cart email not working

In the current Using version we are using Magento 2.4. We are Using this Mailchimp Magento extension - https://marketplace.magento.com/mailchimp-mc-magento2.html We upgraded the Magento version from 2....
user avatar
  • 1,143
0 votes
0 answers
29 views

Catalog Search Indexer runs indefinitely with alot of backlog

I've run into this issue with my indexers lately where my Catalog Search Indexer will run indefinitely with a lot of backlogged tasks. And if, and when, I edit any product or even add any new ...
user avatar
  • 71
0 votes
1 answer
57 views

Problem with execution of cron Magento 2.4.3 - Cron execute twice!

I have problems running cron on Magento 2.4.3 My crontab is configured in this way: #~ MAGENTO START ebd31839b0ed05bdb6ca8efa81d9bd8cc8bb1f90bbec3b545ed65991c8a7d49a */5 * * * * /usr/bin/php /home/www/...
user avatar
  • 1
0 votes
1 answer
39 views

Magento 2 Cron : How to add yes/no Configuration in Backend Stores -> Config -> Advanced -> System under Cron group?

I have created a custom cron and I want to add yes/no config field under Stores -> Config -> Advanced -> System -> Cron group I'm copying the /vendor/magento/module-cron/etc/adminhtml/...
user avatar
  • 1,838
0 votes
0 answers
31 views

Core_config_data value in crontab.xml

I am creating a module to monintor teh cronjobas in Magento. I have created a field in system.xml where we cab store a value to schedule the job in de cron. And I want to place this value in cronbtab....
user avatar
0 votes
1 answer
26 views

Dynamic category module for price range based category

Thanks in advance. I am looking for a script or module that will run via cron and remove products from a category if their price is above 5 USD also it will add products that have a cost up to 5 USD.
user avatar
0 votes
1 answer
86 views

Magento2.4.2 Create order Programmatically not working using cronjob?

Type Error occurred when creating object: Magento\InventorySourceSelection\Model\Address, Argument 1 passed to Magento\InventorySourceSelection\Model\Address::__construct() must be of the type string, ...
user avatar
0 votes
1 answer
40 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
486 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
  • 598
0 votes
0 answers
30 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
1 answer
391 views

Class ... does not exist In classReader.php line 34 in magento2

Just got a problem while compiling: Compilation was started. Area configuration aggregation... 5/9 [=======>-----] 55% 1 min 326.0 MiB In ClassReader.php line 45: Impossible to process constructor ...
user avatar
0 votes
0 answers
34 views

Magento 2 update inventory programmatically using cron

I want to update the product inventory. Get inventory from another platform using cron once got inventory need to update in Magento but what is the best way to update some time I will get more than ...
user avatar
2 votes
4 answers
376 views

Product attribute update que stock

I was trying to do a mass update to add products to a specific store view in a Magento enterprise cloud 2.3.4 website. However, now I am just getting the below message on the top of all admin panel ...
user avatar
  • 781
0 votes
0 answers
15 views

Magento Cron Job is Running a Command It Shouldn't Be?

We have four CLI commands: submit, receive, cancel and import. The first three: submit receive and cancel are all set up to run via the cron job. However, I keep seeing in the logs that the import ...
user avatar
0 votes
0 answers
30 views

Magento 2 | getData("news_from_date") return wrong value

I created a php file external to Magento2 with a foreach that takes the value of the "news_from_date" attribute. On many products the "news_from_date" field is empty but despite ...
user avatar
  • 297
1 vote
1 answer
102 views

Magento 2 : Cron hanging - can't debug

Running into an issue on Magento 2.4.3. Where cron jobs appear to be running correctly but when I run the below I keep seeing cron jobs hanging stuck for an hour, days or more, I have to manually kill ...
user avatar
  • 471
0 votes
0 answers
15 views

Why aren't Magento sale grids using Mview (and indexer)?

By default Magento implement Mview/indexer for some grids for example customer grid. But for sale grids (sale, invoice, credit memo, shipment) Magento use a cron job to insert/update new data (if ...
user avatar
0 votes
1 answer
42 views

Magento crontab vs Magento Cron (Scheduled Tasks)

I am working with the Magento2 Cron functionality, I have created a cron in the crontab.xml (Every 5 mins) default group <job instance="Namespace\ModuleName\Cron\ServiceOrdersStatusUpdate"...
user avatar
  • 1,598
0 votes
1 answer
216 views

How to avoid to have many missed and pending cron jobs?

This below is how my cron_schedule table looks like, how could I avoid having so many cron jobs pending or missed?
user avatar
0 votes
1 answer
64 views

How to find the queue of CSV to export?

I'm running a Magento 2 Commerce and trying to export it via admin panel it didn't work, it seems like it's running forever in the background. How could I check the export queue and clean it? Is it ...
user avatar
0 votes
0 answers
48 views

Crons setup, Amasty's SMTP Email Settings extension installed and working but no Order Confirmation Emails going out

Magento 2.4.2-p1 Porto theme SMTP Email Settings extension by Amasty We had Amasty install the 'SMTP Email Settings' extension which appears to be working = when doing a test - it says: Connection ...
user avatar
  • 306
0 votes
2 answers
125 views

Setting up cron jobs in Magento 2 via cPanel?

Magento 2.4.2-p1 I'm trying to set up the cron job that does the Order Confirmation Emails via cPanel. In our Magento 1.9.4, it looks like this: /opt/cpanel/ea-php70/root/usr/bin/php /home/...
user avatar
  • 306
1 vote
1 answer
97 views

How to use curl in magento 2 cron?

I have cron set up which will run to import the data using the curl. I want to use curl using magento's way
user avatar
  • 183
0 votes
1 answer
541 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
278 views

Is there any way to flush cache (periodically) using Magento 2 cron?

I need to flush some types of cache (or maybe all of them) by Magento cron tasks (not system native), also I might need it to be done periodically, is there any way to do this?
user avatar
0 votes
1 answer
197 views

How to detect CRON issues from the server side?

It seems like we're having CRON issues, I usually check it via this command below. ./n98-magerun2.phar sys:cron:history How could I check it more precisely?
user avatar
0 votes
1 answer
1k views

Fatal error: Uncaught Error: Cannot access parent:: when current class scope has no parent in cron job magento2

I have a cron job in magento 2, since I have added dependencies it has stopped running. I am getting the error Fatal error: Uncaught Error: Cannot access parent:: when current class scope has no ...
user avatar
0 votes
0 answers
16 views

What cron job modify the vendor

Which cron job may modify the code in the vendor/magento folder? My magento version is community 2.3. And the only task into crontab is "php bin/magento cron:run". I have neither configured &...
user avatar
1 vote
1 answer
40 views

Custom module Cron job on specific time not working

I've written a custom module and the module has to run every Wednesday at 07:10. I've written a cron job and in the schedule. Below is the code added in crontab.xml <?xml version="1.0"?&...
user avatar
0 votes
3 answers
120 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
48 views

Magento 2: Set cron schedule dynamically from frontend

I want to set schedule of cron job from values chosen by the customer from the frontend. I have created checkboxes on checkout page through which I want to set the schedule of email reminders chosen ...
user avatar
0 votes
1 answer
122 views

Magento 2 cron reindex causes Page Cache to be invalidated

I am running the following to reindex my products and categories on a schedule /opt/plesk/php/7.4/bin/php -c /opt/plesk/php/7.4/etc/php.ini /var/www/vhosts/mydomain.co.uk/httpdocs/bin/magento indexer:...
user avatar
  • 377
0 votes
1 answer
28 views

Can I pass a file into a function?

I have a function from a 3rd party plugin that uploads data using a CSV. The beginning of the function in the resource model that does the work looks like this public function uploadAndImport(\Magento\...
user avatar
0 votes
0 answers
66 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,441
1 vote
2 answers
185 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
1 vote
0 answers
123 views

Index catalogrule_rule still invalid after reindex by cron

I have an issue with indexes becoming invalid once a day even though nothing has changed (neither in front end or back end). When this happens all other indexes but catalogrule_rule and ...
user avatar
0 votes
1 answer
260 views

Magento 2.3.7 upgrade cron error

I've recently upgraded from Magento 2.3.6-p1 to 2.3.7. Front end and everything works great (and on PHP7.3), but the following cron fails: /usr/bin/php7.x /path/to/magento/bin/magento setup:cron:run &...
user avatar
0 votes
1 answer
161 views

Unable to get cronjob working with Magento2.4

Running Magento 2.4. After installing Magento I get the following error in the admin panel: One or more indexers are invalid. Make sure your Magento cron job is running. I've logged into SSH as ...
user avatar
0 votes
1 answer
21 views

What is the best way to determine if a script is being run by cron in Magento2?

I need a piece of code to execute differently if it's being run by cron, what is the best way to check programmatically that cron is the execution source? I know that it can be done by checking for ...
user avatar
  • 13
0 votes
2 answers
212 views

What is max_messages proper value for running message queue using cron job?

I'm using Magento 2.4.1, and this is my message queue configuration in app/etc/env.php 'queue' => [ 'consumers_wait_for_messages' => 0 ], 'cron_consumers_runner' => [ 'cron_run' => ...
user avatar
  • 177
0 votes
0 answers
46 views

Magento 2: custom product import taking long time

We had a magento 2.3.0 multi-website shop and we use custom product import for shops. We use CLI script as a config for each shops and execute import with a common custom module handing few checkings. ...
user avatar
  • 1
3 votes
1 answer
131 views

Error while reindexing using cron

Cron job failed to reindex we have to index the data manually. job_code : indexer_reindex_all_invalid status : error messages : Error when running a cron job
user avatar
1 vote
1 answer
171 views

Poor Site Performance after Upgrade from 2.4.1 to 2.4.2

After upgrading from Magento 2.4.1 to 2.4.2 on Feb 25th our install has been experiencing very poor performance. The 2.4.1 install ran flawlessly with an uptime of in excess of 80 days, now symptoms ...
user avatar
0 votes
2 answers
311 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
177 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
144 views

Cron job to delete catalog_product_entity_datetime table data, am I using the correct interface?

I have a query to select data from catalog_product_entity_datetime table. can I use below interface to grab the data from above table? If can't what should I do to grab data from this table? I don't ...
user avatar
  • 518

1
2 3 4 5
20