[CronjobPart-workflow] doesn't work

Author Message

Pascal France

Friday 12 May 2006 2:39:14 am

Hi,

As told here:
http://ez.no/products/ez_publish/documentation/installation/the_cronjob_script

if I set:

#[CronjobPart-workflow]
Scripts[]=workflow.php

only workflow.php should be executed. But even I clear all caches by hand, all scripts are executed:

PHP Warning:  mime_magic: type regex            BEGIN[[:space:]]*[{]    application/x-awk invalid in Unknown on line 0
Running cronjobs/workflow.php
Checking for workflow processes
Status list

0 out of 0 processes was finished

Running cronjobs/notification.php
Starting notification event processing
Done

Running cronjobs/linkcheck.php
Checking link ...
check-http://www.linuxorable.net/xxxxxxx valid
check-http://www.linuxorable.net/xxxxxxxxxx valid
check-http://www.linuxorable.net/xxxxxxx valid
check-http://www.linuxorable.net/xxxxxxxx valid
check-http://www.linuxorable.net/xxxxxxxx valid
check-http://www.linuxorable.net/xxxxxxxxx valid
check-http://www.linuxorable.net/xxxxxxxxxxx valid
check-http://www.linuxorable.net/xxxxxxxxx valid
check-"http://www.linuxorable.net/xxxxxxxx invalid
All links have been checked!

Running cronjobs/unpublish.php

Running cronjobs/rssimport.php
RSSImport test: Starting.
RSSImport test: Invalid RSS document.

Running cronjobs/indexcontent.php
Starting processing pending search engine modifications
Done

Running cronjobs/hide.php

Running cronjobs/subtreeexpirycleanup.php

Cordially,

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Kristian Hole

Friday 12 May 2006 2:53:10 am

If you set:

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

and use

php runcronjobs.php workflow

It should run only the workflow script.

Kristian

http://ez.no/ez_publish/documenta...tricks/show_which_templates_are_used
http://ez.no/doc/ez_publish/techn...te_operators/miscellaneous/attribute

Rodrigo Pinheiro

Friday 12 May 2006 3:02:58 am

Hi,

You should set in settings/siteaccess/<site>/cronjob.ini.append.php the following code:

[CronjobSettings]
Scripts[]
Scripts[]=workflow.php
...

Scripts[] resets the array defined at settings/cronjob.ini. For more information, check the following link:

http://ez.no/community/bugs/cronjob_ini_append_php_cannot_delete_entries_from_cronjob_ini

Best regards

Pascal France

Friday 12 May 2006 4:13:14 am

@Kristian

Thinks, it works fine.

@Rodrigo

I tried to put a cronjob.ini.append.php override in both mysite siteaccess and mysite_admin with:

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

and it doesn't work. All scripts are executed.
It's the same thing if I put the same [CronjobPart-workflow] setting in cronjob.ini

Cordially

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

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 18:33:34
Script start
Timing: Jan 18 2025 18:33:34
Module start 'layout'
Timing: Jan 18 2025 18:33:34
Module start 'content'
Timing: Jan 18 2025 18:33:35
Module end 'content'
Timing: Jan 18 2025 18:33:35
Script end

Main resources:

Total runtime0.6304 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 589.0547152.6250
Module start 'layout' 0.00530.0026 741.679739.4453
Module start 'content' 0.00790.6209 781.1250586.7500
Module end 'content' 0.62880.0016 1,367.875012.1563
Script end 0.6304  1,380.0313 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.4985160.0002
Check MTime0.00130.2091160.0001
Mysql Total
Database connection0.00070.118710.0007
Mysqli_queries0.572990.8832620.0092
Looping result0.00060.0965600.0000
Template Total0.596794.720.2984
Template load0.00210.325820.0010
Template processing0.594794.330620.2973
Template load and register function0.00020.025410.0002
states
state_id_array0.00080.134710.0008
state_identifier_array0.00070.107420.0003
Override
Cache load0.00170.2675360.0000
Sytem overhead
Fetch class attribute can translate value0.00070.111030.0002
Fetch class attribute name0.00120.184250.0002
XML
Image XML parsing0.00070.116030.0002
class_abstraction
Instantiating content class attribute0.00000.001650.0000
General
dbfile0.00080.1216160.0000
String conversion0.00000.001140.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
4content/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
6content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 26
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs