Server time:  CET
Login
 





Forgot Password ?
Sign up
Members 40212 Members
Jobs 74019 Cronjobs
 
Bookmark and Share
 
Webcron
Welcome, Guest
You can read the entire forum but need to login to post.
Re:How can I control Cron start & stop (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:How can I control Cron start & stop
#251
Sheni ()
User Offline
How can I control Cron start & stop 1 Year, 2 Months ago  
Hello,

For mailing purposes I am using webcron to continuously activate the broadcast process until the list is over.

However, when mailing is not on, I am currently wasting lot of resources & money on simply executing it (calls process and finds no broadcasts).

I require the cron to run every 1-2mins only from broadcast start to end. Is there a way to configure this. Please help.

Thanks
Shen
 
Logged Logged  
  The administrator has disabled public write access.
#252
Re:How can I control Cron start & stop 1 Year, 2 Months ago  
Hi Shen,

Do you need to send these mailing on a regular base (ie. every morning, untill all mails have been send)?

We are currently finishing documentation of some methods in our API to manage cron's. It might be interesting for you to use these.

Example of a possible setup:

1. You lauch every morning a single cron that checks if there are mails to send. If this is the case, your script activates your "send mail" cron by using the API method.

2. When your "send mail" script finishes it's work, it de-activates the "send mail" cron (by API) untill next morning... then the process starts all over.

Could this be solving your problem?

The docs will probably be ready next week.

-Bastiaan
 
Logged Logged  
 
Last Edit: 2009/07/07 11:21 By bastiaan.
  The administrator has disabled public write access.
#253
Sheni ()
User Offline
Re:How can I control Cron start & stop 1 Year, 2 Months ago  
Thanks Bastiaan

The reply was really quick. You had explained exactly the same way I require it with the solution.

Can I activate the cron when the broadcast starts through my system using the API as the broadcast is manually initiated everyday.

Also my other challenge is that I need to run the cron more frequently to finish the broadcast sooner (news alerts).

Thanks again for your support and the idea.

Regards
Shen
 
Logged Logged  
  The administrator has disabled public write access.
#254
Re:How can I control Cron start & stop 1 Year, 2 Months ago  
Hi Shen,

Yes, by using the API, you can activate the cron when you start your scripts.

About the frequency, currently we offer only cron execution every 5 minutes.

If the timeout of your script is short (< 25 seconds) you could also use Webcron monitoring to launch the script, with a frequency up to every minute. Keep in mind that monitoring will not send you an alert when 1 execution fails, it will only send one if 2 consecutive fails are found. If this is ok for you, you can start using it right away, since the monitoring API is already available for members.

See http://www.webcron.org/api for more information.

Let me know if you need more information or help implementing this.

Regards,
Bastiaan
 
Logged Logged  
 
Last Edit: 2009/07/07 14:53 By bastiaan.
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoard