Re: Best way to run period task?
Re: Best way to run period task?
- Subject: Re: Best way to run period task?
- From: Tim Worman <email@hidden>
- Date: Wed, 6 Jan 2010 17:59:35 -0800
Mark:
For simpler tasks I write direct actions then call that DA from curl. Then I set up a cron job to call a simple shell script that runs curl (or other). For security purposes, I check the requesting host in the DA. So, if the request doesn't come from "localhost" or "127.0.0.1" it doesn't run.
This solution obviously doesn't work well if you want to be able to set the schedule within the app.
Tim Worman
UCLA GSE&IS
On Jan 6, 2010, at 4:22 PM, Mark Woollard wrote:
> What's the recommended way to run a periodic task from within a WO application? In this case its infrequently (hourly) and independent of any web requests.
>
> Thanks
> Mark
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden