Share » Forums » Developer » problem Controlling Wait until date...

problem Controlling Wait until date WorkFlow

problem Controlling Wait until date WorkFlow

Tuesday 09 May 2006 5:34:27 am - 9 replies

Modified on Tuesday 09 May 2006 5:35:43 am by John Mina

Author Message

Kristof Coomans

Tuesday 09 May 2006 5:52:04 am

Hello John

You need to use the content/publish/before trigger.

Did you run the cronjobs? They will do the timed publishing for you.

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

John Mina

Tuesday 09 May 2006 6:05:23 am

Hi Kristof,
I have just saw the cronjob thing, and not able to run it cuz I am on cgi mode .
Is there any way to do it while i am on Cgi mode not a cli mode?
Knowing that soon we are upgrading to a hosting that can have the cli installed.

I didn't understand how many times i have to run the cronjobs any way ? is it only once when i add a new workflow or what ?

thnx
John

Ɓukasz Serwatka

Tuesday 09 May 2006 6:21:48 am

Hi John,

There is soultion, look on this documentation page (run cronjob via Webbrowser )
http://ez.no/products/ez_publish/documentation/configuration/configuration/cron_jobs

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

Xavier Dutoit

Tuesday 09 May 2006 1:22:54 pm

And you have to run the cronjob regularly for wait until...

Each time it runs it looks if some content were supposed to be published because the date of publication is in the past.

The time between two runs define the precision of when the system is going to publish. If you want an article to be published at noon but can afford to have it published at 2pm only, then you don't need to run it more than every two hours.

X+

http://www.sydesy.com

John Mina

Tuesday 09 May 2006 1:50:21 pm

well,
These 2 documentation and points are very helpfull, now i put the cronjob code, so i think it runs every 2 hours as i copied the part specifying the 2 hours interval.
But i think i still have the article publih as soon as i click send for publishing.

Should i have the Triger set to : content/publish/after or before ?

Thanks a lot for help

Kristof Coomans

Tuesday 09 May 2006 11:31:29 pm

You need to use the content/publish/before trigger.

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

John Mina

Wednesday 10 May 2006 12:03:27 am

Hi,
according to the server time it was 1:40 am ,so i made the publishing date at 1:45 am,
before that i made the triger as publish/before.

The results , i found that the article went to my pending items.
Souyld i wait the next time that the cronjob run , in order i have my pernding list empty ?

I will wait 2 hours and check and reinform you thanks

Kristof Coomans

Wednesday 10 May 2006 12:12:36 am

The item will be published next time the cronjobs run after 1:45 am. Of course you can also run them manually right after 1:45 am to see if it works. Good luck!

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

John Mina

Sunday 11 June 2006 1:50:22 am

hi Kristof

it took me a while to find out how to set t up in the right way i mean the cronjob , but now it works very fine
thanks a lot

Currently i have a question is there a way to edit any of the articles that are pending for publishing according to the wait until workflow

what if i did a mistake ? how to delete it ?

Thanks for help
John

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu