Forums / Setup & design / [CronjobPart-workflow] doesn't work

[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

eZ debug

Timing: Jan 18 2025 15:02:31
Script start
Timing: Jan 18 2025 15:02:31
Module start 'content'
Timing: Jan 18 2025 15:02:32
Module end 'content'
Timing: Jan 18 2025 15:02:32
Script end

Main resources:

Total runtime1.1000 sec
Peak memory usage4,096.0000 KB
Database Queries199

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0082 589.1641180.8281
Module start 'content' 0.00820.9150 769.9922591.8281
Module end 'content' 0.92320.1766 1,361.8203337.3984
Script end 1.0999  1,699.2188 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00470.4230210.0002
Check MTime0.00160.1418210.0001
Mysql Total
Database connection0.00100.090910.0010
Mysqli_queries1.011791.97211990.0051
Looping result0.00220.19671970.0000
Template Total1.060496.420.5302
Template load0.00240.217420.0012
Template processing1.058096.186420.5290
Template load and register function0.00030.024410.0003
states
state_id_array0.00130.115110.0013
state_identifier_array0.00160.147020.0008
Override
Cache load0.00200.1849360.0001
Sytem overhead
Fetch class attribute can translate value0.00140.123940.0003
Fetch class attribute name0.00150.138150.0003
XML
Image XML parsing0.00120.111340.0003
class_abstraction
Instantiating content class attribute0.00000.001350.0000
General
dbfile0.01020.9257270.0004
String conversion0.00000.000630.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
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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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