Forums / General / Problems with indexcontent.php or runcronjobs..

Problems with indexcontent.php or runcronjobs..

Author Message

K259

Wednesday 23 August 2006 12:35:47 am

I run runcronjobs.php which include indexcontent.php. I see in the table ezpending_actions 202 objects waiting to be indexed, but when I run the cronjob, it only index a few. After I ran, I now have 80 objects in ezpending_actions. If I run the cronjob once more, I'm down to 43 objects left...why don't the cronjob index all the objects at once?

K

Marcin Drozd

Wednesday 23 August 2006 8:27:25 am

Hi
Perhaps, max_execution_time (in php.ini) is inadequate (?)

http://ez-publish.pl

Ɓukasz Serwatka

Wednesday 23 August 2006 9:03:12 am

max_execution_time is not respected by CLI PHP, problem might be related to memory. You can run runcronjobs.php script with -dall option for debugging.

$ php runcronjobs.php -dall

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Kristof Coomans

Wednesday 23 August 2006 9:04:21 am

This is default behavior, there's a hardcoded limit of 50 in the indexcontent cron script. But I don't know why it is like that.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Claudia Kosny

Wednesday 23 August 2006 11:17:47 am

Hi Kristof

Are you sure about the hardcoded limit? The way I understand the code the script just fetches 50 items each time and processes them before fetching the next chunk of 50 items.
But as it does do that until the query does not return any items anymore, all items in the pending queue should be processed at the end.

Greetings from Luxembourg

Claudia

K259

Wednesday 23 August 2006 2:42:32 pm

Post deleted. Wrong topic.

Kristof Coomans

Wednesday 23 August 2006 11:04:32 pm

Hi Claudia

I should have looked better :-) You're right about the code.

After indexing the first 50 pending actions, these pending actions get removed. But the offset is also increased ( on line 79 on trunk: <i>$offset += $limit;</i> ), so the next query will miss the next first 50 pending actions. Seems to be a bug (<i>http://ez.no/bugs/view/8874</i>).

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

K259

Thursday 24 August 2006 12:42:04 am

I can confirm this. Please give information about this, when there is a fix. This error has been since 3.4.x or earlier.

K

Kristof Coomans

Thursday 24 August 2006 7:27:15 am

You can just remove the line with

$offset += $limit;

and it will work fine.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

eZ debug

Timing: Jan 19 2025 09:42:14
Script start
Timing: Jan 19 2025 09:42:14
Module start 'content'
Timing: Jan 19 2025 09:42:15
Module end 'content'
Timing: Jan 19 2025 09:42:15
Script end

Main resources:

Total runtime1.5602 sec
Peak memory usage4,096.0000 KB
Database Queries218

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0087 590.2109180.8203
Module start 'content' 0.00871.4158 771.0313715.2734
Module end 'content' 1.42450.1356 1,486.3047340.4375
Script end 1.5601  1,826.7422 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.2506210.0002
Check MTime0.00150.0958210.0001
Mysql Total
Database connection0.00140.092810.0014
Mysqli_queries1.467794.07352180.0067
Looping result0.00230.14702160.0000
Template Total1.518597.320.7592
Template load0.00210.134220.0010
Template processing1.516497.191920.7582
Template load and register function0.00020.012710.0002
states
state_id_array0.00090.060410.0009
state_identifier_array0.00150.097520.0008
Override
Cache load0.00180.1122360.0000
Sytem overhead
Fetch class attribute can translate value0.00140.092760.0002
Fetch class attribute name0.00120.0799110.0001
XML
Image XML parsing0.00170.106860.0003
class_abstraction
Instantiating content class attribute0.00000.0017130.0000
General
dbfile0.00220.1426350.0001
String conversion0.00000.000530.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
9content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 29
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs