How does cronjobs.php selects siteaccesses?

Author Message

Massimiliano Bariola

Tuesday 18 April 2006 7:17:56 am

Hi,

I am writing an addition to the cronjobs since I need some operation done. Usually cronjobs.php is ran via shell; how do I specify which siteaccess should it run against?

e.g. this cronjob script I am running needs to use the ez database installation of only a certain siteaccess , and not another one. or I might want first to run my script against the test siteaccess and after that, to run it against the live siteaccess. (this is actually my situation).

so, where do I look to be able to specify which ini settings and thus databases should the script be using?

thank you,

Max

Kristof Coomans

Tuesday 18 April 2006 8:45:48 am

./runcronjobs.php --help will show you the possible arguments

use -s to specify the siteaccess

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

Yngve Bergheim

Wednesday 19 April 2006 5:39:55 am

You will also need to set up a new cronjob.ini.append.php in /settings/ and add this part:

[CronjobPart-mynewcronjob]
Scripts[]=mynewcronjob.php

Where mynewcronjob is, well, the new of the new cronjob :-)

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 22:19:55
Script start
Timing: Jan 18 2025 22:19:55
Module start 'layout'
Timing: Jan 18 2025 22:19:55
Module start 'content'
Timing: Jan 18 2025 22:19:56
Module end 'content'
Timing: Jan 18 2025 22:19:56
Script end

Main resources:

Total runtime0.8029 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0049 588.0469152.6406
Module start 'layout' 0.00490.0028 740.687539.4766
Module start 'content' 0.00770.7936 780.1641573.1484
Module end 'content' 0.80140.0015 1,353.312512.1250
Script end 0.8028  1,365.4375 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3932160.0002
Check MTime0.00140.1719160.0001
Mysql Total
Database connection0.00060.080210.0006
Mysqli_queries0.754093.9144590.0128
Looping result0.00060.0710570.0000
Template Total0.776596.720.3882
Template load0.00200.250920.0010
Template processing0.774496.456320.3872
Template load and register function0.00020.024510.0002
states
state_id_array0.00110.132310.0011
state_identifier_array0.00110.138520.0006
Override
Cache load0.00170.2093190.0001
Sytem overhead
Fetch class attribute can translate value0.00050.059330.0002
Fetch class attribute name0.00180.220850.0004
XML
Image XML parsing0.00360.448330.0012
class_abstraction
Instantiating content class attribute0.00000.001150.0000
General
dbfile0.00300.3750230.0001
String conversion0.00000.001340.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs