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

learn more… | top users | synonyms

0
votes
2answers
23 views

Safe to delete cache_form table while site is in maintenance mode?

My site has a very large database of 100MB, most of this is in a table called cache_form. Ive tried clearing the cache. When I try and run the cron I just get a white screen. My site is in ...
0
votes
0answers
14 views

Drupal System cron temporary file/folder error

I have very specific problem which I can't resolve. Thing is, I've created few files with function that creates temporary files and then system cron after running should delete them. Problem that I ...
0
votes
0answers
17 views

cron trying to delete file(s) although it is linked to entity (node's image field)

Cron generating Did not delete temporary file "public://<filename>.jpg" during garbage collection, because it is in use by the following modules: file. although that file is linked to ...
0
votes
1answer
16 views

How to approach scheduled rules to real deathline?

Hello Im facing a problem, I made an app that makes use of a lot of scheduled rules, I could notice that those rules are not executed exactly in the time that is indicated in the schedule, those rules ...
0
votes
1answer
29 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
0answers
32 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(); } ...
0
votes
1answer
26 views

Cron won't start

I have a smaller Drupal 7 Aquia site and Cron will run successfully if I press the button manually. The issue is that it just won't ever start on its own. The scheduler doesn't seem to be working. ...
0
votes
0answers
22 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
1answer
38 views

How to disable cron from running while another time consuming process takes place?

We bulk upload nodes on our Drupal site. Those nodes need to be Solr indexed all at once, without having to wait for cron to index them. The cron job indexes apachesolr_cron_limit nodes per run. As a ...
1
vote
2answers
60 views

Improving Site Speed and Cache for Authenticated Users

I am building an intranet site. I have the site set up with single sign on via the server authentication module meaning there are no anonymous users. This means large parts of the cache are worthless. ...
0
votes
0answers
29 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 = ...
0
votes
0answers
31 views

X(16) jobs are behind schedule - Ultimate Cron

I am working on Drupal 7. I installed ultimate cron module to run the feeds module periodically. But for some reason i am getting the following error message. 16 jobs are behind Schedule. Can some ...
0
votes
0answers
131 views

drush cron fails: Drush command terminated abnormally due to an unrecoverable error

$ drush -v -d cron Bootstrap to phase 0. [0 sec, 1.65 MB] [bootstrap] Drush bootstrap phase : _drush_bootstrap_drush() [0 sec, 1.77 MB] [bootstrap] Cache HIT cid: ...
0
votes
1answer
38 views

How to create a cronjob to update all nodes

I have a content type that has a computed field that needs to be updated constantly. So I need to create a cronjob to update all nodes of a certain type (example 'page'), so that the code is executed ...
2
votes
1answer
35 views

cron_last vs node_cron_last variable

I wanted to get the time of last node update (any node). So, then I thought I could simple pick last cron run time ( because I am using feeds module to pull the RSS feeds so nodes will be updated on ...
0
votes
0answers
58 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 ...
-3
votes
1answer
38 views

saving programmatically without changing the author [closed]

I made a script to change some node fields that is run by cron. When it saves the nodes, the author changes and becomes "Anonymous". Is there a way to save programmatically a node without changing ...
0
votes
1answer
14 views

How to tell whether the current request is part of a cron run?

I have a module that needs to behave differently when its hooks are invoked during a cron run. (For example, my module should redirect normal page requests, but avoid redirecting during a cron run, ...
0
votes
1answer
138 views

302 Redirect with cron.php

On a rather old drupal site (D5) I get a 302 on calling cron.php when doing this via wget or curl. It worked fine for many years (via crontab). If I use a browser for that I get a 200 and a blank page ...
3
votes
1answer
135 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
47 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.
2
votes
2answers
91 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
46 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
51 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
10 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
51 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
63 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
91 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
66 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
711 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
106 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
65 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
80 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
22 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
284 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
150 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
116 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
167 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
729 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
66 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
189 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
72 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
346 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
123 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
43 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
47 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
96 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
65 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
368 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
388 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 ...