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
16 views

Scheduling a module to run at a specific time

Is there any way to schedule a particular sub-module to run at a specific time? I found hook_cron but it seems to rely on a scheduled cron job in crontab to run cron.php and then cron.php calls ...
0
votes
1answer
18 views

Get Instagram realtime count likes

Here is how the application is structured: A cronjob runs every 3 hours making the Instagram Recent Media call -https://api.instagram.com/v1/tags/myhashtag/media/recent?access_token=ACCESS-TOKEN If ...
0
votes
2answers
24 views

Execute Drupal function in background, maybe with cron, for the duration of a user session

It was too complicated description of the task, so let me edit it and simplify: I need a Drupal 7 function (data collection function) to be periodically triggered in the background but only a while a ...
0
votes
0answers
12 views

Need publish created POLL using cron

In our portal, we allow users to create poll. we received list of polls from users. we shortlist 5 top polls and need to published poll one by one to every month through crons. Please tell me how ...
0
votes
1answer
25 views

Updating all existing user's custom field

I am fairly new to Drupal development and ran into a problem when trying to create a cron to update the value on a custom field for all the existing users. Here is the code, when I click run cron it ...
-1
votes
0answers
13 views

Site offline cron will run or not?

I am using cron for posting content to twitter... I mentioned cron run at every one hour. Site was offline. Is it possible to send the content to twitter using cron when my site offline?
0
votes
1answer
17 views

Is there a process to run a task daily

I have business logic that interfaces with Drupal entities (in this case, users), and we need to generate reports off these records daily at a preset time. It would be easy for me to generate this ...
-2
votes
0answers
9 views

Set up crontab for simplenews absolute files url

I need to fix my issue with url files included into a simplenews content via a views.Actually automatic cron break the url..how can i configure it to get the same work as i do with drush ? so i would ...
0
votes
1answer
26 views

Stop send email attempt when cron is run

I just took over a drupal 7 site and when cron is run I get the follow error SMTP Error: Could not connect to SMTP host WD mail: Error sending e-mail (from ???????? to ???????) I know the previous ...
0
votes
1answer
12 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
3answers
44 views

Creating node when cron runs [closed]

I'm a bit new to drupal and I have a task, where I have to create a node when cron runs. I set up the node like this in my custom module's cron hook: $node = new stdClass(); $node->type = ...
0
votes
0answers
31 views

Drupal 7: Why push notification module is too slow? how to optimize it

I don't know is question is good or bad... But I am very confused. On form submit, I am performing two different task, Lets say Task_A and Task_B. Task_A = "Process the form and insert into table" ...
0
votes
0answers
7 views

How to use Feeds to retrieve HTML for nodes, each node having its own url/Xpath expression

Hithere, Maybe someone could help me ... What Im trying to do is to create a Feed, that will retrieve a numeric field from HTML source, and those HTML sources are website homepages associated to ...
0
votes
0answers
27 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
14 views

Cron log time reverts to last failed attempt

I have a cron job that seems to run fine with no errors. However, it always seems to revert back to the last time it ran unsuccessfully. While the job is running, the cron job shows the correct ...
0
votes
1answer
22 views

Drupal CSV import and create nodes

I am trying to accomplish the following through feeds and want to know if this is possible. Setup a cron to pull a CSV file via ftp from another server daily Create a bunch of nodes with custom ...
-1
votes
1answer
29 views

how to setup cron to run everytime when new file is generated in drupal files folder

I created webform and saving submitted data into text file in drupal files folder. A remote script performs calculations and outputs new text file to the same folder . I want cron to run everytime ...
0
votes
1answer
16 views

Does performing $entity->save() on field collection programmatically clears the page cache of it's node host?

I am using $entity->save() on a custom hook_cron that runs every minute. Does anyone knows if by doing $entity->save() , Drupal will clear the page cache of the nodes/views/panels housing it?
1
vote
2answers
102 views

set specific time to cron for specific php script

Actually i want all unpublish nodes to be delete automatically whose created date is 2 days ago. I can write php script for that and also include that code in hook_cron api. but i am confused that my ...
0
votes
1answer
26 views

Scheduler module- not working even after cron run, But running scheduler(dmin/config/content/scheduler/cron) cron it is working

Installed 'Scheduler module' and try to publish a content on specific time,But it seems like it is not working. tried with 'Run cron manually' also, But it doesn't ,While trying with Scheduler light ...
0
votes
1answer
35 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 ...
1
vote
0answers
47 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 ...
0
votes
0answers
38 views

How to clear caches after workflow state change?

I have a site with a lot of content in various Workflow states for editorial processes. Only the "Published" state is visible by anonymous users. I use Drupal's basic page caching. For a long time ...
0
votes
2answers
38 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
1answer
73 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
34 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
20 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
39 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
44 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
42 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
44 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
69 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
80 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
65 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
83 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
536 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
45 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
50 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
109 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
49 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
204 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
241 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
61 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.
3
votes
2answers
125 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
54 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
68 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
13 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
88 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
84 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 ...