Questions tagged [cron]

Use it for questions about performing routine and other maintenance tasks in Drupal.

105 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0
votes
0answers
373 views

Jobs falling behind in Ultimate Cron, but none take very long to run

I have a total of 15 cron jobs set up in Ultimate Cron. 14 of them are set to run every 15 minutes, and 15th runs once a week. The longest of the 14 takes 22 seconds to complete. They are only ...
0
votes
0answers
462 views

How to re-index nodes using search API?

On exploring search_api.module file, there mentioned few hooks.Is there any practical demonstration how to use search_api_index_reindex hook? Basically I'm trying to re-index nodes, after executing ...
0
votes
1answer
119 views

Nodes not get indexed after running manual cron

I'm experiencing some unexpected behavior of cron. I have used search_api module, that should index all nodes. Automatic cron is set to 1 hour. So after every hour, cron will run automatically. So, ...
0
votes
0answers
236 views

run drupal console command from linux cron

I have created a .sh file which runs a drupal console command via bash. I have tried to run this script in linux cron and all other commands work with exception to the drupal console command. How ...
0
votes
1answer
45 views

Ubuntu crontab is not triggering when site is in maintenance mode and also revert to online

I am using the Ultimate cron module and I have set the main Drupal cron task in crontab to run every 5 minutes. I have put my site in maintenance mode. Drupal cron tasks are not running when site is ...
0
votes
0answers
188 views

Running a PHP script with Elysia CRON

I want to automatically run a PHP script every 3 hours or so. The script is pretty heavy. It pulls XML data from another website then encodes it into a JSON file to be imported by feeds. The ...
0
votes
1answer
42 views

Foolproof way to prevent email sends from local/dev server

We have had a number of occasions when a new new developer starts working on a project, and when they have it installed the cron runs and sends out a load of emails to users. If the database is fairly ...
0
votes
1answer
91 views

Nightly truncating all cache_* tables? Good or bad?

I'm having some issues on various D7 sites with some cache tables growing stupidly large (e.g cache_metadata or cache_menu) which then makes drush cc all very slow (more than 1 minute). Do you think ...
0
votes
1answer
185 views

How to execute hook_cron after a rule with event Cron maintenance tasks are performed?

I have a rule with event Cron maintenance tasks are performed. It is executed when a cron run. I have implemented hook_cron in my custom module and I want this hook_cron should be run after that ...
0
votes
1answer
102 views

Cron task does not create images

I've made a module which will parse a few RSS feeds, and automatically creates new content. But I've got an issue creating images. Since D7, cron are run anonymously, so I think my problem comes from ...
0
votes
0answers
61 views

Programmatically rearrange blocks in region and save in database?

Need to react on site events and regroup blocks in front. I have my region 'Top' in front, configuration is like this: Block2: India News Block1: World News Block3: Frontpage content When new ...
0
votes
1answer
333 views

Scheduler Module crontab job does not publish content

When running the Scheduler lightweight cron through crontab, I am getting a message that the lightweight cron has activated and completed in my D8 log, but content is not publishing. When running the ...
0
votes
1answer
114 views

How to run cron automatically after node published?

cron has to run after some time of node publishing.I tried like this function custom_module_cron{ //($updated = node published time) if(date("Y/m/d H:i:s") == date("Y/m/d H:i:s",$updated+60)){ //...
0
votes
1answer
255 views

Elysia cron and feeds being stuck - how to resume the imports?

I have a bunch of Feeds imports, programmed automatically with Elysia Cron. There is a problem with the size of the content to be loaded, as the import uses to hang, and always at about the same ...
0
votes
1answer
87 views

How to prevent that import with Feeds and Elysia cron gets stuck

I have several Feeds which are called by Elysia cron. The feeds are called at a given time, and later the last two feeds are called each 2 minutes, because it was the only way of preventing them from ...
0
votes
1answer
489 views

Scheduler Module unpublish content

Trying to schedule a content type to be unpublished on a specific date. Using the scheduler module everything is set up seemingly correct. When I run Cron the update fails, Updater Content - ...
0
votes
1answer
100 views

Cron not working when called from SSH php curl - Elysia cron module activated

I have Elysia cron module activated, with some cron task scheduled. I have a crontab pointing to an sh every */2 minutes. The sh executes a php with a curl call to cron.php?cron_key=CRON-KEY. It was ...
0
votes
1answer
596 views

Search indexing slow query

Drupal 7.x The search module's indexing maintenance sql query takes a couple of minutes to complete each time cron gets triggered. SELECT t.word AS realword, i.word FROM search_total t LEFT JOIN ...
0
votes
1answer
41 views

Drupal cron is running very frequently

Drupal cron is running every 10 minutes in my site but i have set-ed 1 day time for cron, i have cleared cache and fix all the major php error logs, please help me how to fix this issue.
0
votes
1answer
99 views

Revisions revert unexpectedly

I have a really horrible intermittent bug where a collection of nodes will reset to a previous revision. Here is an image of the revisions tab on the node: There are three unusual aspects: The '...
0
votes
1answer
282 views

cron for rebuild xmlsitemap mannually without drush in cpanel

I'm using this: XMLsitemap module: https://www.drupal.org/project/xmlsitemap I have a cpanel shared hosting in hostgator and drupal 7. I can not install Drush, ssh access is not enabled. i go to ...
0
votes
0answers
35 views

How do I load several feeds sequentially and in order?

I have a site which loads its content nodes using Feeds module. I load several nested taxonomies, and, as indicated in the docs, I use several different feeds. These are called sequentially by hand. ...
0
votes
1answer
38 views

how to set cron correctly on a shared server

I set the following command for cron on a shared server. /usr/bin/php5.3 home/public_html/cron.php (All the Drupal files are under /public_html) This commend seems to be working but I get the ...
0
votes
1answer
107 views

Cron runs in all server instances

We are facing really big issue with the cron. Our site is running on 2 ec2 instances under the load balancer. We have lot of cron tasks which are performed every day. But the problem comes when the ...
0
votes
2answers
38 views

Possible to change cron link?

I use D6. Cron run often by some bots visiting example.com/cron.php Is it possible to change it somehow? Or restrict? I would like to prevent anonymous users to hit the script.I want to be able to run ...
0
votes
3answers
587 views

sending mail without running cron

I have created a rule to trigger an email in user profile. But I could see the email after running cron only or else I could not see email in my inbox. Why is this? Can any one help in this please? I ...
0
votes
2answers
372 views

Mail is sending after running the cron

I have created a rule to trigger an email in user profile. But I could see the email after running cron only or else I could not see email in my inbox. Why is this? Can any one help in this please? I ...
0
votes
2answers
247 views

Redirect after login for specific role on specific day using Rule

I want to create a rule for specific user to redirect to his profile page on specific day like Monday and Thursday. For this, I used the Rules module, together with the Rules Once per Day module. If ...
0
votes
0answers
52 views

Emails repeatedly sent at each Cron run

In my project i am using the Rules module to schedule the sending of emails to some users on my site. At cron run, the scheduled emails are sent as expected. However I found out that at each ...
0
votes
1answer
46 views

Website encountered unexpected error - how to avoid?

I'm having that typical problem of Website encountered unexpected error popping up sometimes and then after repairing watchdog MySQL table it all works find again. My question is if there is a module ...
0
votes
0answers
38 views

Form action=“/cron.php”

I got a custom form in a block, wich is available on my homepage. After e while the form action changes to action="/cron.php" instead of action="/nl". I can't figure out where this fault is comming ...
0
votes
1answer
235 views

CronJobs - I have two cron jobs but only one works

I have created 2 cron jobs on my server(ubuntu), but only one works. */5 * * * * curl -s http://www.example.com/cron.php?cron_key=TzVesnZuNqR4mkjv_LgBemUV-oYvsfYalyHOfDtL4cc */5 * * * * curl -s http:...
0
votes
0answers
53 views

Send SMS on X day

I have a calendar schedule and within that schedule I have some events. How can I send an SMS to the users on the event day minus some days(event_date - x days)? Thank you very much!
0
votes
1answer
23 views

Views Display for a query that doesn't display view content to user

I need a views display type that will not output content to the user. Essentially, I've got a view that simply performs a query, and I get the results of the query with views_get_view_result() and ...
0
votes
0answers
127 views

Implement a Queue in Cron

I am trying to implement a Queue for my cron job, but some how it is not working. Following is the code snippet I have tried, but it is not working. function hook_cron() { watchdog('notice', 'Cron is ...
0
votes
0answers
419 views

How to automatically put your site into maintenance mode if at least a critical security update is available?

I think I'm craving for this functionality. What I want is, if after a CRON run, Drupal detects that such a security update is available, the site would be taken down for maintenance mode to avoid ...
0
votes
2answers
312 views

Feeds importer. Only imports a certain amount then stops

I have been attempting to import 5,000+ pieces of content from a CSV file using the feeds module. I have it set up to import 130 items every cron run and i have cron running every hour. All is good ...
0
votes
1answer
297 views

Boost crawler - maximum time to use for crawling on every cron run?

I have a drupal 7 site. The site is really big and has few content types, and a lot of content. I use boost and Cache expiration to improve performance. I will be happy to get some information ...
0
votes
0answers
343 views

Programmatically change date field in hook_cron

I'm trying go buid a node who is updated every day updating a field 'field_data' to the current date. This is my initial code: function actomodule_cron(){ $nid = 58; $node = node_load($nid);...
0
votes
0answers
134 views

Cron not working on migrated site

After migrating a site, I checked /admin/reports/status and verified that cron has not been executed in a long time. I tried to run cron manually /admin/reports/status/run-cron, but all I got was a ...
0
votes
0answers
80 views

finding unexpected looping in cron queue process

I'm trying to find unexpected looping result from my codes, I'm stuck and confused cuz of this :( , I hope someone might give me suggestion to solve it. here's my codes: function budhapest_cronsync() ...
0
votes
1answer
160 views

Have to delete cron_last every time for cron.php to work

I am having trouble running cron.php. For testing, I am just running it from the browser (my_domain/my_site/cron.php.) Basically, if I go into the database and delete cron_last from the variable, it ...
0
votes
1answer
346 views

Turn off cron and hook_cron for every module in Drupal

How can I turn off cron and disable implement of hook_crons in every modules in Drupal my site is Drupal 6 Thanks
0
votes
1answer
65 views

Drupal cron will unserialize array and add extra characters

I am working in an application using Drupal. Thru the UI I upload a text file that is then parse and each line store in the DB as a serialized array. So far so good until there. I have setup a ...
0
votes
0answers
104 views

JSON Parser Duplicating Nodes on Cron Import

I have a cron set up to import using JSON Parser / Feeds, but with each import it duplicates the existing nodes. I'd really like to only import the new items. Is this possible? What am I missing?
0
votes
1answer
144 views

Drupal feeds module causing high cpu usage when pulling feeds

I am using the Drupal Feeds module to download the feeds from an external site. I have setup a dedicated content type to pull the feeds and then created nodes of another content type for the ...
0
votes
0answers
744 views

Crontab to trigger scripts with drush commands

I've read this question and the answers links through to Jenkins. Looked into it but was way over my head to install and set up. The other answer links to this page which talks about running cron ...
0
votes
0answers
78 views

Which IP address(es) should I use for Allowed Hosts in Elysia Cron?

I am configuring Elysia Cron on a Rackspace Managed Cloud Server. We have a loadbalancer in front of two webservers. Am I supposed to use all three (3) IP addresses (Load Balancer, Web01, Web02) in ...
0
votes
0answers
38 views

Cron Cache is not working

When i used the Cache Expiration module i noticed that the Cron Cache module is no longer working and the cache tables in the database are no longer flushed so the database size is getting bigger day ...
0
votes
1answer
62 views

Cron Cache not working

I'm using the Cron Cache module to empty my cache tables especially the cache_form table who take 200Mo in 2 days ,but the probleme is that i notice that the module is not working anymore for few days ...