cron is the term used for a background server process for performing routine and other maintenance tasks.

learn more… | top users | synonyms

1
vote
0answers
19 views

HTTP request status fails, but update checking works manually

I have a problem with my Drupal 7 (multi-site) installation on a root-server. The HTTP request status shows "failed" on the status page. However, I am able to check for updates manually when logged in ...
1
vote
2answers
32 views

know if the last cron run automatically or manually?

Is there a way to know if the last cron run automatically or manually from the form "run cron" button ? Thanks in advance.
1
vote
2answers
57 views

hook_cron_queue_info 'time' value

I've been searching around, but I can not find a good explanation (or understanding) what the 'time' value in hook_cron_queue_info actually does, or how to set it to work properly. From: ...
0
votes
3answers
32 views

How often does hook_cron happen?

How often does hook_cron happen? what is the periodic time for executing the codes inside this hook?
2
votes
1answer
32 views

Queue doesn't enter on worker function with Elysia cron

I'm trying to use queue api with cron, everything seems work but drupal does not enter on the "worker" function. The problem there is only if I enable Elysia Cron (and I've to enable it..) <?php ...
0
votes
0answers
8 views

Cron failing because of Schema errors

So I have a .install file for one of my custom modules and I am needing a "date_created" field which is a MySQL timestamp field. It's created like this: 'date_created' => array( 'description' ...
0
votes
1answer
30 views

Running cron failed and show white page

I am using Drupal 7. When I am running cron manually as an admin, I get white page. When I am looking at the dblog report immediately after trying to run cron, I always see the following notice: ...
0
votes
1answer
33 views

cron.php failing with errors

I have a site running Drupal 6.30 which has started giving errors when it run the hourly call to cron.php. The cronjob in question is and run as root: 0 * * * * wget -O - -q -t 1 ...
1
vote
1answer
33 views

Cron error: file could not be created

Cron on Drupal 6 seems to complete, but I get a message stating that a file could not be created. Do you have any idea about what is causing this?
0
votes
1answer
56 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. ...
1
vote
3answers
273 views

How to schedule a php function every 2 month?

I need, every 2 month, to execute some rule component programmatically but I don't know how to do this. If I use hook_cron I don't know how to check 'once every 2 month' condition. I can check ...
0
votes
0answers
47 views

Simplenews, Elysia Cron, and Crontab — system cron running every 15 minutes, but having to run cron manual from drupal to send mails

This is our setup: Drupal 7 Elysia Cron 7.x-2.1 Crontab MAILTO="email@maildomain.com" */15 * * * * /drupal/directory/path/to/scripts/cron-curl.sh The system cron is running every 15 minutes and I ...
0
votes
2answers
40 views

why feed importer cron fails?

In my drupal 6 website, we have used feed importers to import feed, but from few days We are not getting new feeds and then I have gone to 'status report' in admin panel and checked status report ...
0
votes
1answer
51 views

trigger a form submission button using custom cron

It's possible to create a cron that trigger the submission of a form ? To be clearer, when my drupal cron is executed, this form will be submitted automaticlly ? EDIT : This is an explantion for ...
1
vote
0answers
11 views

Devel output on hooks called during cron run

I'm implementing a hook that is called if certain conditions are met during a cron run. (Specifically hook_bounce_mails_blocked($mails) from the Bounce module) The hook is triggered, but any output ...
0
votes
1answer
112 views

how to send an email at specified date when a node is saved using rules

I have a node of type task . it has a field reminder date when I save or update the node I want to send an email to list of users on reminder date. I have used rules module for that event: after node ...
0
votes
2answers
77 views

Drupal 7, Elysia cron and Simplenews - messages not sending but

Using Elysia cron with Simplenews to send newsletters. For elysia cron simplenews_cron is set to */10 * * * * (or every minute) But it doesn't run automatically, I have to run it manually. In order ...
0
votes
1answer
86 views

Running repeating background tasks / cron jobs relatively often in Drupal 7 on Pantheon

I ran into an issue recently, where I have a piece of code that accesses content from an external source. The content generation from this source is quite slow (3-5 seconds), but it only needs to be ...
0
votes
2answers
77 views

Cron Run and Cache

I'm running Drupal 7.25 on my Ubuntu server. I have a process that is kicked off by user interaction (form) that needs to run in the background. I currently have cron.php being run every minute via ...
2
votes
1answer
301 views

Cron task with Elysia cron module run only manually?

Im using the cronapi coming with Elysia cron module and here is my code : function MYMODULE_cronapi($op, $job = NULL) { $items['example_news_cron'] = array( 'description' => 'Send mail with ...
0
votes
0answers
55 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 ...
1
vote
1answer
108 views

Cache form Drupal change expire time

I made cache_form table work (see How to keep cache_form small). But cache_form, though expired cache is now cleared, is enormous anyway (nearly 2 Gb, and we have only 1000 unique users in a day). ...
3
votes
1answer
57 views

Execute pending queues using batch? Possible?

I have implemented the Queue API inside hook_cron, to do certain update operations on a site: function HOOK_cron() { $interval = variable_get('variable_val', 60 * 60 * 24); if (time() >= ...
0
votes
3answers
187 views

How to run drush with cron (elysia cron)?

Problem I can't get cron (specifically elysia cron) to run with Drush. I've been using this as a guide. What have I missed/done wrong? My Crontab ...
1
vote
1answer
76 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. ...
0
votes
0answers
34 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() ...
1
vote
2answers
45 views

Custom filter disabled after approximatively 45 minutes

I am developping a filter to render equations in nodes as images from LaTeX code using mathtex library ( http://www.forkosh.com/mathtex.html ). The filter works quite well, my filter is active, the ...
1
vote
1answer
67 views

EntityFieldQuery doesn't work correctly in hook_cron

I am programming a new module in my Drupal 7 project. in my module hook_cron is override. in my hook_cron function, I want to select a node type with specific filter for a cck field. I am using ...
0
votes
1answer
57 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 ...
1
vote
1answer
225 views

Feeds - Background process vs Batch API

I've being using Feeds to import a medium sized amount of nodes in a daily basis. I'm using Elysia cron in order to get fine tuning cron settings. Here's my flow : Every day at 02 am a cron task is ...
1
vote
1answer
180 views

How do I stop a stuck-and-running cron job (Elysia Cron on Pantheon)?

One of my cron jobs, which are all managed by Elysia Cron and running in its default channel, is stuck and running (R). My site is hosted by Pantheon, in case that matters. The job in question is ...
0
votes
1answer
38 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
2
votes
2answers
217 views

How to programmatically determine if the cron is running

Is there any way programatically to determine when the cron is running (and if possible, what tasks are being run)? I've explored some options online that are bound to drupal_cron_run(), but no ...
1
vote
1answer
85 views

Unflagging a node with Rules Scheduler

I have got an issue unflagging a node with Rules scheduler when triggering it with cron. The node gets unflagged just fine if we execute the component manually, however, if I schedule it to unflag the ...
0
votes
1answer
36 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
1answer
170 views

How to set up different differnt cron job on same site? [duplicate]

I have a requirement where we have to run multiple cron at different different time and all crons are define under MODULE_cron hook So my Question is how to provide admin configuration to setup job ...
2
votes
3answers
68 views

Exporting large data using cron

I am working on a website which has around 150k users. I have to create a csv file which contains the details of user (drupal fields and profile2 fields ) and export the csv to another server daily. ...
2
votes
0answers
53 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) { ...
0
votes
1answer
203 views

Feed Import (Twitter) via Cron

I'm using the Feeds Module to import Twitter Tweets as Nodes. As long as I start the import manually via www.yourdrupal.com/import everything works fine. But I want the Feed importer to start ...
1
vote
2answers
170 views

Daily cron job to download and email Webform submissions file

On a Webform I can download a tsv (tab delimited) file and select the 'Only last submissions since download' option. What I want to do is have a daily cronjob which does the same thing and emails ...
1
vote
2answers
71 views

How to use cron with views cache?

I have a dashboard with about seven views that are each very expensive. Most of the views can be computed hourly, but I would prefer cron to run them rather than the unfortunate user. How can I have ...
0
votes
1answer
289 views

Intermittent “Cron already running error”

I get the error every once in a while then Cron completes successfully, then the error crops up again some hours later, and after about 3-4 tries the system completes cron again without a problem, all ...
0
votes
2answers
233 views

Elysia cron stuck in (w) state (wating to be executed)

I have a few crons set up to run every 15 min. My system cron is set to execute every 5 mins. However one cron keeps getting stuck in the (w) state. I updated its setting to run every minute (* * * *) ...
1
vote
0answers
118 views

How to send notifications Via sms to users every week depending on a date field value [closed]

In my site I want mothers of newborn children to receive different reminders/ notifications once every week until their baby is One year old. The text message or SMS received would depend on the age ...
0
votes
1answer
113 views

Use hook_cron to send daily mail but I get 4~5 the same mail every day?

I'd like to make all of my partners in my company receive daily metrics like new users, pageviews everyday, I wrote a custom module using hook_cron. This is my code: function custom_metrics_cron() { ...
1
vote
1answer
98 views

Send a regular reminder (or do other normally cron-dependent tasks) while in maintenance mode

I recently had an episode where I put a site into maintenance mode to perform a security upgrade and forgot to go live again afterwards, resulting in almost a day of downtime before I caught the ...
0
votes
0answers
49 views

Apache Solr Drupal 6 in Multi instance server

Currently I am working on a website in Drupal 6 and using Apache Solr 3.6.x. In production we have 2 instance server. Now the problem I am facing is how to manage the Apache Solr indexes. Once the ...
1
vote
1answer
425 views

What does cron error “exit status 4” mean in syslog? (Ubuntu)

I've never seen this before, my Status Report page says the last cron run was 35 minutes ago at 10:35 today. So I went to watchdog logs and could see that Cron run completed at 10:30. I've set the ...
0
votes
0answers
52 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?
3
votes
1answer
320 views

What is the best practice to index remaining content with solr? [closed]

First please forgive me if this a recurrent question (I cannot find a solution otherwise). I want to avoid waiting my cron to index remaining content with solr. What is the best solution to have all ...