Questions tagged [cron]

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

106 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
1answer
85 views

How to periodically deduct user points for flagged nodes?

I have a node which is published. And I have a global flag, which users have to mark to make nodes visible in Views. This is easy to do. But then I need to charge 40 user points for every day that ...
2
votes
0answers
74 views

How to schedule content every Wednesday at 18.00 (6 PM)?

Looking for something which was easy in Drupal 7, but can't find it or can't get it to work in Drupal 8. import feed do not publish content immediately run a rule that sets the content to publish ...
2
votes
1answer
1k views

How to run a cron queue programmatically?

I have created a cron queue like given below. function mymodule_cron_queue_info() { $queues['aggregator_feeds'] = array( 'worker callback' => 'aggregator_refresh', 'time' => 60, ); ...
2
votes
0answers
30 views

three servers serving same content, one Drupal database: implications for cron, etc

We have an intranet with one primary, master server (let's call it #1) and two backups (#2 and #3), and I want users to be able to use any of them interchangeably. For our other applications, #1 is a ...
2
votes
0answers
130 views

hook_cron() doesn't get any value from taxonomy_get_tree()

I am using the following code, but it doesn't work. function mymodule_cron() { // ... _update_user_categories($uid); // ... } function _update_user_categories($uid) { $...
2
votes
1answer
277 views

What are the performance implications of running a frequent simplenews cron task to send emails?

In the Simplenews docs there is the following tip: The Elysia Cron module (http://drupal.org/project/elysia_cron) can be used to start the simplenews cron hook more often than others, so that ...
2
votes
3answers
245 views

Cron jobs stuck in drupal 6

I am maintaining a site on drupal 6. I have installed a birthday module which can send mails to users on their bday. But it doesnt do so. None of the other cron related tasks are done, though cron ...
1
vote
1answer
35 views

How to run the cron within specified timebound only?

I have a requirement which needs to be done via cron. Some of the jobs should run only in time frame of 9AM-7PM everyday. So how I can schedule a cron for this type of requirements in the crontab.I ...
1
vote
0answers
175 views

Cron job in custom module not appearing in Cron Settings (using Elysia Cron)

Very strange problem that I cannot find anyone else having. I have a custom module and am using hook_cron(), but the cron job is not appearing in /admin/config/system/cron of my Drupal 7 site. All ...
1
vote
1answer
309 views

How to force a cron run after a Rules component is scheduled?

This question is a sequel on Why is the database not updated before a next Rule is launched?. I have a Rule that schedules a Rules component 5 seconds after the current time (this number is ...
1
vote
1answer
243 views

Problem with drupal $queue->DrupalQueue::get and $queue->createItem

I am updating approx 10000 nodes using hook_cron_queue_info and hook_cron(), it execute only for 25 nodes. Is there any problem? function my_module_cron_queue_info() { $queues['my_module_batch'] ...
1
vote
1answer
454 views

Timeout in sites, perhaps related to cron

I have been struggling with a timeout error in a couple of Drupal 8 sites, which I have not been able to reproduce. When I deploy them into my colleague's production server (a Mac machine), all the ...
1
vote
0answers
44 views

Cron stuck because update module

My cron is stuck because "Drupal core update status : No update data available", when disable update module, cron run good again. Just try manual update but it run more than 3 minutes then nothing ...
1
vote
1answer
122 views

Custom VBO Action only works when enqueued (Adding User Role and Organic Group)

I wrote a custom module to add a VBO action that allows an Admin of a group to search the sites users, add them to their list (adds a role to the select users to get them on the list) and then allows ...
1
vote
0answers
64 views

How should I use the Queue Runner module?

I would like to run tasks in sequence (commerce product feed before commerce node feed). I think the Queue Runner module could do the job. However, I can't find sufficient examples of how to implement ...
1
vote
0answers
186 views

Cron job runs task during cron and redirects

When I run a cron job, it sometimes will redirect to the background task status page and then redirect to the messages page. However, cron does not get marked as run. If I do it again, right away, it ...
1
vote
1answer
263 views

Need of re-indexing on search on Drupal site?

My client site has a table whose data is coming from Indexed view, sometimes updates made to the data wont reflect in the view table. Elysia cron is installed and up running, which should update the ...
1
vote
0answers
82 views

Manage multiple feeds import using cli

How can I optimize multiple feed importer from cli? Is there any way to optimize multisites using multicron for each site in drupal 7.? I want to implement like this https://www.drupal.org/node/...
1
vote
0answers
2k views

Jobs behind schedule in Ultimate Cron

I almost always have over 30 jobs behind schedule in Ultimate Cron, and I'm trying to understand why that is, and how I can fix that. I am using Ultimate Cron 2.x, with Background Process. A good ...
1
vote
1answer
164 views

Re-import nodes daily using feeds and hook_cron

My requirement is to import nodes daily night after deleting all the contents in that node type. I enabled the cron settings in feeds module as 1 day and tried to write hook_cron() to delete all ...
1
vote
0answers
521 views

Scheduled publishing timings, cron, cache clear

We have a site where users make extensive use of scheduler to schedule publishing of articles etc. Site crons are run externally through drush and elysia_cron is installed to give fine-grained ...
1
vote
1answer
229 views

Can I set a cron for deleting and re-indexing Search API daily?

Using Commerce Kickstart 2. When we add new products, the facet search index does not re-index automatically as it says it does (Maybe because we are using some Aggregated Fields?) -Whatever-, we ...
1
vote
0answers
37 views

cron import more than 2 files with feeds

I'm on Drupal 7 using services and feeds. We have 10 XML files we're trying to upload during cron that doesn't work. If I do it manually by using wget/cURL via SSH only 2 files are uploaded. If I run ...
1
vote
1answer
237 views

Cron Run error for drush update script

I have created a script drup.sh to update the site with security issues and placed it in the sites/default dir. #!/bin/bash drush up drupal --security-only -y And on testing it by running bash drup....
1
vote
0answers
462 views

Job for create/import data from csv

I need to import a large amount of contents of a CSV file. The file is a bit complex and still have a folder with a lot of images that are associated with each line of the csv. As the file is complex ...
1
vote
1answer
722 views

Scheduler module not working even after cron run

Installed 'Scheduler module' and try to publish a content on specific time. But it seems like it is not working. I tried with 'Run cron manually' also, But it doesn't ,While trying with Scheduler ...
1
vote
0answers
653 views

Drupal Queue is not processing with hook cron

All my code is here, the queues are created in backoffice, but the action in the worker call back is never processed. ! I lean the node creation in my function inalco_publications_queue_worker is ...
1
vote
0answers
140 views

Automatic cron job not giving proper results

When I ran my cron manually ,everything is working fine.But when it run automatically it is generating the error message. This is my code in my cron. function hook_cron() { mymodule_report(); } ...
1
vote
0answers
932 views

Feeds Import stuck after cron

Each time cron runs automatically, Feeds import skips half the new feeds and 2 out of 4 feed importers gets always stuck. E.g.: Solves by Unlocking, but I can't keep clicking Unlock after each cron ...
1
vote
1answer
124 views

Cron Authentication Error

I can not seem to find out what cron.php is doing exactly that it needs to have an ssl connection with Google. I keep getting the following error: ERROR: Authentication with Google failed. Reason: ...
1
vote
1answer
713 views

Backup & Migrate scheduled backup silently fail

I've tried to use backup & migrate for backups on my omega8 based aegir server. Although I've defined a schedule, and setup cron interval to 1 hour, it doesn't work - no backups are generated. ...
1
vote
0answers
832 views

Cron not running - any symptoms to check?

I have cron set to run every 3 hours on /admin/config/system/cron (D7's poormanscron). I can run it manually just fine from that page, but over the course multiple days it simply won't run by itself. ...
1
vote
0answers
3k views

How to clear Drupal temporary folder?

I've done research and simply cannot find how to clear the images from the temporary folder on Drupal 7! I have a jQuery slider on my home page that pulls the five latest image files to display. I ...
1
vote
0answers
492 views

Running regular Migrate in Cron leads to duplicate nodes

Related: Schedule Migrate to import XML data regularly I am getting duplicate nodes every time I try to do a rollback/update. Is it because they are triggered when users visit the page (instead of me)...
1
vote
1answer
139 views

Segmentation fault at search_cron()

Whenever I try to run cron on the search, using drush php-eval 'search_cron();' I get 'Segmentation fault' error. I have not this problem for any other tables. The site contains hundreds of text-...
1
vote
0answers
432 views

D7 cron - Ajax getting cached by Varnish?

Somehow it never occurred to me that D7's cron is really a "poorman's cron" until I came across this previous question. The Ajax added to a user's page requests shouldn't impact the load time of the ...
1
vote
0answers
115 views

Breadcrumb Path Disappearing (temporarily) after Cron

This is a problem that's been bugging me for a while. I am using a book structure to generate my breadcrumbs, but it seems that when I first load a page, only the homepage and title of the page itself ...
1
vote
1answer
458 views

Ultimate Cron Background Process Taking a Long Time

I'm having background process on Ultimate Cron process various queue items, but the fastest it usually processes them is at least one minute, and sometimes 3 minutes per item. This seems incredibly ...
0
votes
0answers
14 views

Running cron every minute on Pantheon with Elysia Cron

I am on pantheon now and I've never used a cloud host before so I'm used to being able to set cron on the server. This is totally new territory for me. I have some tasks that I need to run every ...
0
votes
1answer
14 views

Feeds Importer and cron not running

I have a Drupal 7 setup with a number of different content types, each with a common set of fields. Each content type has its own feed, which calls a .csv that's produced from a Google Spreadsheet ...
0
votes
0answers
9 views

Elysia Cron not running cron tasks that were previously paused

I have 2 cron jobs that are scheduled to run every two minutes. When I first added them, they worked as expected and ran normally. We ended up needing to pause these cron jobs for a few weeks and so ...
0
votes
0answers
75 views

How to prevent an 'Attempt to create a field field_description that does not exist on entity type group'?

When cron runs I see a notice in the dblog. Drupal\Core\Field\FieldException: Attempt to create a field field_description that does not exist on entity type group. in Drupal\field\...
0
votes
0answers
73 views

How To Get Item_id value in ProcessItem function

I developed a custom module which will process my items in queue. I have some custom table and custom action buttons to Process queue items. When i click on "Process Queue" button it will call the ...
0
votes
1answer
41 views

Using Ultimate cron to set a specific time to run a function of module, but it is not working as expected

I have set ultimate cron job time once a day but it works at every hour because another default site cron is running every hour. This code is working on production but not according to crontab time i....
0
votes
0answers
23 views

Should I use queue processing and poormans cron at the same time?

So for a drupal 7 site, I am using Ultimate Cron module to manage cron jobs. I'm using crontab to set the schedule. I am also using poormans cron launched by the serial launcher. However, on the ...
0
votes
0answers
32 views

Why are image styles only being generated during a cron run?

I've got a weird thing going where image styles are not being generated after uploading images (as media entities) Image styles are generated during a cron run. Is there a setting for this that I ...
0
votes
0answers
39 views

Weekly Drupal cron task exiting unexpectedly, Drupal not reporting error

I have my doubts that this problem is actually caused by my Drupal configuration, but am wondering if anyone else has experienced a similar issue and how they went (or would go about) troubleshooting ...
0
votes
0answers
80 views

drupal_http_request as authenticated user during cron

I have a rule set up that runs during cron. Part of that rule is an action that is supposed to save a PDF (via Entity Print which only authenticated users can access) to my server. It works fine when ...
0
votes
1answer
31 views

module to test if e-mail is working

In D7 I'm trying to determine the best way to periodically check if e-mail is working. I'm looking for a way to create a workflow that, say, on cron would check the day of the month, if it's the day ...
0
votes
0answers
74 views

Error: Cron has not run recently. But it did!

I have a site (hosted on Acquia) which always return an error about cron not running on the Status report page, but it actually runs regularly and it does all the task attached to it. Cron is running ...