Questions tagged [cron]

Denotes a question related to the cron system

Filter by
Sorted by
Tagged with
1
vote
1answer
13 views

Best practice for setting up CRON:INDEX from admin

Magento Cron for all groups are currently set for Each Minute. Magento Support recommends this too. However I am facing Server Slowness issues specially in the admin when this is turned on to each ...
0
votes
1answer
17 views

Command line enable / disable static blocks

I would like to be able to enable and disable static blocks via the command line, is there a utility that provides this functionality. My use case is to configure a cron job to periodically enable ...
2
votes
0answers
38 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=...
0
votes
1answer
11 views

Magento 2: Unable to unserialize value. Error: Syntax error

I'm creating Order export cron module for Magento 2.3. I'm getting below error Cron-job "monthly_report" threw exception InvalidArgumentException In Json.php line 39 ...
1
vote
0answers
13 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 ...
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> * ...
1
vote
3answers
113 views

Run cron for indexation every hour

This is the first time I want to run cron for indexation every hour. I found multiple tutorials but none of them give me what I'm looking for or skip some steps. I'm using OVH as a web hosting, ...
1
vote
0answers
11 views

M2: issue with cron table with language translator

I added a large number of CRON tasks to the translation table. Now when I open this table I see an error: Manage Cron Warning: DOMDocumentFragment::appendXML(): Entity: line 1: parser error : CData ...
0
votes
1answer
17 views

Debugging Magento 2 cron errors when no message is left?

Quite often when I'm attempting to create a CRON job I'll mess up along the way and the job will fail to run. Typically I'd check my logs and see where I went wrong, put the missing semicolon back, ...
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
0answers
11 views

Magento 1 - Automatically update backend/admin settings on a certain date and time

In germany the taxes are getting lowered because of corona at 01.07.2020 on 00:01 o'clock. The problem is, that no one works in our company in this time, so we have to automate the setting change. ...
1
vote
2answers
116 views

How to Solve: “Could not acquire lock for cron job: X” in Magento var/log/cron.log

With my M2 instance indexers in "Update on Schedule" mode... var/log/cron.log receives this warning near constantly: Could not acquire lock for cron job: indexer_update_all_views [] [] The cron ...
0
votes
0answers
26 views

Magento 2 Captcha Images Not Deleting (thousands of files using space)

We've got a Magento store running on version 2.2.5. The captcha images that are generated in /pub/media/captcha do not seem to be automatically deleting once expired. I know that the ...
0
votes
0answers
8 views

Why would cron be sending MANY Emails from root@server to user@server?

Magento ver. 1.9.3.7 Porto theme We were (Email) blacklisted so I started digging around and on one of our Magento accounts, there are many Emails (1460 every day) which are being sent like this: ...
0
votes
1answer
21 views

Magento 2.3.3 not sending any mails

My Magento 2.3.3 is not sending any emails from the solution. As far as I can see, the cron job is running, the mail settings looks fine and are enabled. I think I have tried it all, but no luck, it ...
0
votes
1answer
22 views

how often that magento 2 reindex cron job run?

Anyone know how often that Magento 2 Reindex Cron job run daily? thanks
0
votes
0answers
12 views

How often should Cron schedule run in Magento2 for 10,000+ products?

I have a Magento2 site with 13,000 products loaded. Looking at the server CPU usage, I can see that it is currently consuming ~60% CPU at all times. I have looked at the processes using the "top" ...
0
votes
1answer
24 views

How to solve slow performance, slow and long running CRONs in Magento Cloud?

I'm having these two main issues below in my Magento 2.3.2 Enterprise Cloud. Heavy SQL load and site performance issues. Long-running and stuck CRON. How could I solve it?
2
votes
1answer
115 views

why message queue consumer never exiting when --max-messages specified?

I'm using Magento 2.3.4 with RabbitMQ configured in the env.php to process my message queues, I start consumer using: bin/magento queue:consumers:start ConsumerName --max-messages 1 But the consumer ...
0
votes
0answers
11 views

Indexer with custom cron_group

We have created a new custom indexer as per requirement. And now we need to schedule that indexer with custom cron_group which can be scheduled according to business. We don't want to schedule with ...
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
22 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"> <...
0
votes
1answer
29 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
24 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 ...
0
votes
1answer
21 views

Cron job not launching automaticaly

I've created a CRON job which I want to launch once a time every day. This cron is sending me an email when it's launching. See my crontab.xml <?xml version="1.0"?> <config xmlns:xsi="...
0
votes
1answer
45 views

How the message queues schedule works?

I just configured my message queues to run via RabbitMQ, but I don't know the schedule and frequency of these processes. How could I check the schedule and change the number of processes to be ...
0
votes
0answers
5 views

Query to send a data within time frame

I have created a cron job for my module and set the cron to run in every minute. So whenever the cron is run, I'm sending the data collection to another server using ftp. Now, whenever the cron is ...
0
votes
1answer
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 ...
0
votes
0answers
54 views

Problem with shipping confirmation email

I have this very strange problem regarding the sending of the shipping confirmation email. The cron task sales_send_order_shipment_emails kept failing, so I looked at the logs and I have this: [2020-...
0
votes
0answers
18 views

Magento1.9 - Cron to change image names

I need to change all image names to take the product name as their name. I would like to create a cron that runs one time. As far as I understand, I need the loaded product, so I can take its name ...
0
votes
1answer
22 views

How to optimize my indexes cron execution?

I'm checking how to optimize my cron execution in the reindex action, and I saw the option to run the index job in a separated process. How does it work? can it be helpful to optimize the execution?
0
votes
1answer
18 views

magento cloud, pause the cron job?

I am using the Magento Cloud, is there anyway to pause or temporary disable the cron job running on Magento? Thanks
0
votes
0answers
17 views

Magento 2.3: CRON job is not working in custom module

I have created a module for collecting customer data from the Magento database and sending them as a CSV file to another server by hitting the controller URL in browser. Now, I want it to be send ...
0
votes
1answer
407 views

Magento System.log - Unknown connection name amqp [] []

I am following this documentation for the custom cron job https://devdocs.magento.com/guides/v2.3/config-guide/cron/custom-cron-tut.html I should get the below message in the system.log as part of ...
0
votes
0answers
29 views

Magento 1.9 - Totally email not working in my store

another critical problem when going to send email from my store.can't send any email through the store site.Also i checked core_email_queue table & email-queue _recipient ,no records there. I'm ...
0
votes
2answers
47 views

Run Magento2 Reindex only during off-peak hours

We have a Magento2 shop with 20.000+ products and multiple storefronts. So reindexing takes a long time (about 10 minutes). We want the reindexing of catalog_category_product and ...
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
1answer
30 views

Magento, invalid model/method definition for start working cron

I want to start work my cron job, but i have error Mage_Core_Exception' with message 'Invalid model/method definition, expecting "model/class::method", got "DaniilKrok_Backorder_Model_Observer::...
1
vote
1answer
236 views

Magento 2 Custom cron not working

I am trying to run custom cron but, I got below error in system.log while execute cron:run command. main.WARNING: Could not acquire lock for cron group: default, skipping run [] [] crontab.xml ...
0
votes
1answer
39 views

Magento2 - How to check all running CRON Jobs?

In Magento2 how to check all running CRON Jobs. Is there any way for that?
1
vote
1answer
31 views

Magento Cron Error unexpected '['

I've installed an extension to Magento that switches customers groups, the cron that it runs is giving me the following error: TRIGGER: shutdown function Last error: Array ( [type] => 4 [message]...
1
vote
3answers
41 views

Indexer Issue - idle (741 in backlog)

Some categories meta title & description is not setting.I am getting backlog in index status. any idea to fix this issue?
0
votes
2answers
31 views

Magento 2.3 | How to get Website ID in Cron Class

I tried to retrieve it as: \Magento\Store\Model\StoreManagerInterface $storeManager and $websiteId = (int)$this->storeManager->getWebsite()->getId(); But it returns null in cron class. ...
0
votes
1answer
36 views

How to use systemd timer to replace OS system cron?

My Linux distro does not have a system cron by default. I can install one, but as an alternative, is it possible to replace that functionality for Magento 2.3 with a systemd timer? If so, what are the ...
0
votes
1answer
69 views

Magento2 - Cron Job not working

Cron Job is not working. Below is crontab.xml file: <?xml version="1.0" ?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:...
0
votes
2answers
145 views

Can I remove indexing from cron:run?

The cron php bin/magento cron:run is set to run every minute in our project. Along with various other tasks it runs indexing in Magento. Indexing is part of index cron group. For debugging purpose ...
0
votes
0answers
28 views

How to skip any particular indexer from indexing when cron runs?

I have configured cron (php bin/magento cron:run) which runs every minute. One of the tasks this cron job does is to update all indexers in Magento. When the indexing is run via this cron job, I want ...
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
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
21 views

CRON job not setting up on linux

I have setup the corn command using crontab -e command. MAILTO="" * * * * * /usr/bin/php7.2 /var/www/vhosts/hostname/httpdocs/bin/magento cron:run --group="test" I have created module to run CRON ...

1
2 3 4 5
19